Class 'ZipArchive' not found

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

Class 'ZipArchive' not found

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


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

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

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

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

}else echo "Error in zip creation";

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

Any suggestions?
Thank you

Post Reply