|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here! |
|
#1
|
|||
|
|||
|
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. |
|
#2
|
|||
|
|||
|
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 |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Perl Programming > zipping files in perl |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|