Skip to content
Advertisement

download many archives for a server in one archive with php

I need to do an aplication to makes the user download a lot of pictures in the server choosing some criterias and only in one archive. i tried with php and pclzip.lib and zipstream libraries found on web, but none of the two methods work. with pclzip i only can compress 3Mb and with zipstream library in the middle of the download it fails with a 25MB size. I donĀ“t know how many archives the user will need to download but now i have around 700 archives and 75MB. Is there another way to make this application work or has anyone had similar problems with this libraries and solved it. Here’s some more specifications: remote server iis, php. thanks and sorry for my english

Advertisement

Answer

After some time I’ve found the way using

 ini_set('max_execution_time', 1200);
 ini_set("memory_limit","500M");

And the library ZipStream. Also, I’ve changed the PHP memory limit in the PHP server because my file is really big.

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement