Create ZIP archives with PHP script and PEAR class
We can use PEAR to process zip files in PHP using Archive_Zip…. First set PEAR path in php include path using set_include_path Make Zipped file <?php include (‘Archive/Zip.php’); // include PEAR ZIP package $obj = new Archive_Zip(‘test.zip’); // zipped file name $files = array(‘svnlabs/1.gif’, ‘svnlabs/resume.doc’, ‘svnlabs/invoice.xls’); // files add to zip if ($obj->create($files)) { echo … Read more