Perl Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesPerl Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old February 20th, 2001, 09:54 AM
SoccerFan SoccerFan is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2000
Posts: 11 SoccerFan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Is there a way to zip files with PeHP?

Here's my problem - I have a set of images on my site. I want users to be able to select those images, have the selected images zipped up in a zip file, and then available for download.

What's the best way to do this?

I don't have direct server access, so I'd love something that I can do without requesting modifications from my hosting company.

Reply With Quote
  #2  
Old February 20th, 2001, 02:41 PM
timbuckthree timbuckthree is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 4 timbuckthree User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
If you have at least FTP access, I'd make a special directory and use that as a zipped image repository. Go ahead and zip the images on your side upload them on the server into the repository. Then have the script download the specific images that they want.

Or you could do it, your original way and use:

Code:
$command = "zip my_file.txt";
# You could use tar or gzip or whatever
# your hosting server has available.

system($command);


But I would stick with my first suggestion.

Good Luck,
Tim

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPerl Programming > zipping files in perl


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway