Jump to content

Script to download files in ZIP format...


cgm225

Recommended Posts

If I have a directory full of files, is there a way to have php temporarily compress them into a ZIP file for a user to download?  If so, can that handle a large volume of files (for example, like 500 jpegs totaling 500MB's) such that the user will not have to wait a long time for the download to initiate?

 

Thank you all in advance?

Link to comment
Share on other sites

Hrmmm..... I wrote a script that temporarily compressed a single text file (around 30MB) and it could do it fairly quickly....

 

As for JPGs, I have no idea how long that would take, especially if it totals 500MB....  I would assume it will take quite a bit of memory to do that too.

 

http://us2.php.net/zip

 

The instructions are fairly straight forward, but I can try to help if needed.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.