View Full Version : zipping files with php

04-15-2004, 04:40 PM
First do any body know about a zipping program that will do it's jop immidiatly without asking the user any question?

Second I want a script that will make me able to zip all the files in a directory by just clicking one button (for example in my php page I have a button called unzip)when clicking on it all the zipped files in a specific directory will bezipped each zipped file into folder).

04-15-2004, 06:30 PM
php cannot (IIRC) create zip files, only unzip. You may however be able to find an old zip compression program and do it that way..

04-15-2004, 06:32 PM
Just checked it out, take a look at http://uk.php.net/manual/en/ref.zip.php and http://www.phpconcept.net/pclzip/index.en.php

04-16-2004, 04:31 AM
also look at exec() , most unix systems will have zip/gzip installed and you can use exec() to pass the command line required.