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
https://forums.phpfreaks.com/topic/94055-script-to-download-files-in-zip-format/
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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.