Hi Guys,
I am using the PEAR class "Archive_Zip". However, it doesn't seem to be working correctly. It doesn't seem to be zipping the files I requested- but instead creates a corrupt blank zip file.
Below is the code I am using...also I have attached the PEAR class to this post.
Any ideas what could be causing this problem?PHP Code:include_once(DIR.'/pear/Zip.php');
$obj = new Archive_Zip(DIR.'/_dt_backups/site-backup-'.time().'.zip');
$files = array(DIR.'/add.php');
if($obj->create($files)) {
$this->WriteLog("File backup complete");
} else {
$this->WriteLog("File backup error");
}





Bookmarks