cgm225 Posted March 2, 2008 Share Posted March 2, 2008 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 More sharing options...
corbin Posted March 2, 2008 Share Posted March 2, 2008 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 https://forums.phpfreaks.com/topic/94055-script-to-download-files-in-zip-format/#findComment-481826 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.