Class 'ZipArchive' not found

General discussion on Zend Core for IBM System i
Post Reply
pascalpolverini
Posts: 3
Joined: Mon Apr 06, 2009 2:50 pm

Class 'ZipArchive' not found

Post by pascalpolverini » Tue Jan 26, 2010 9:42 am

Hi,

I' m trying to use the PHP zip command and get error:

Here the code:
$zip = new ZipArchive();
$file= "mysavf.zip";

if ($zip->open($file, ZIPARCHIVE::CREATE)===TRUE) {

$zip->addFile('mysavf.savf', 'mysavf.savf');
$zip->close();

}else echo "Error in zip creation";

Here the error:
PHP Fatal error: Class 'ZipArchive' not found


Any suggestions?
Thank you

Post Reply