Creating ZIP File with PHP.

This post helps you to create a ZIP file using PHP, Arun had coded a few lines of script that system converts the selected files into ZIP file format. It is useful for ecommerce web projects like selling PDFs, Images and Docs ect, use can choose files and download it into compressed format. Take a look at this live demo

Not working . I get this error.Response denied by WatchGuard HTTP proxy.Reason: body content-type denied rule='ZIP archive'Method: POSTHost: demos.9lessons.infoPath: /zipper/index.php Try to fix it.Thanks for your great post.

// function to create ZIP archive. Returns TRUE on success, otherwise, False// receives 2 arguments: an array with the path-name of the files to add in archive,// and the path-name of the Zip file that will be createdfunction createZip($files, $zip_file) { // PHP-MySQL Course - http://www.coursesweb.net/php-mysql/ // create an object of the ZipArchive class $zip = new ZipArchive;

Hi its charan.I have implemented zip download using php.i am trying to download more the 50 recording means mp3 files. its not executing the zip achiver..if i give exact 50 recording. its executing zip..Can i get suggestions on this..

Excellent. Easy to use & modify to requirementsInvaluable when it comes to choir members downloading their inividual Training Files, rather that having to plod through individual hrefs (although I've included hrefs for those that prefer the old way).Thanks a lot. Just what I needed

when i am download so I try to open the downloaded zip file the crc32 is always 00000000 and the file/files cannot be extracted. I tried doing the same thing with text files and that works fine. (the crc32 is 000000000)

when i am download so I try to open the downloaded zip file the crc32 is always 00000000 and the file/files cannot be extracted. I tried doing the same thing with text files and that works fine. (the crc32 is 000000000)