help me ziparchive
I have the zip script but i dont have class for zip archive plz help me with class for below script function Create_zip($source,$destination,$overwrite='')
$zip = new ZipArchive();
$zip->addFile($source);// Add the files to the .zip file
$zip->close();// Closing the zip file
ZipArchive is a built in class in PHP. You'll need to enable it on version 5.2+, or install the PECL library on an older version. Simply follow the instructions here for the installation (which is very easy for this library): http://php.ca/manual/en/zip.installation.php
@Fou-lu i downloaded the file from http://php.ca/manual/en/zip.installation.php but inside it is in xml file.. What to do and my php version is 5.4 and how to enable zip.. I searched in settings but not found option to enable..
Originally Posted by Fou-Lu
You should have a lot more than that. It should contain all of the source code for the php_zip module.
You're on a 5.4 version, so you don't need to install the pecl zip. Simply open the php.ini and uncomment the php_zip.dll/so and restart apache.