How to use zip extension

From: Date: Wed, 22 Mar 2006 18:22:56 +0000
Subject: How to use zip extension
Groups: php.pecl.dev 
Request: Send a blank email to pecl-dev+get-3646@lists.php.net to get a copy of this message
Hi, I have a fedora core 3 server with PHP 5.1.7 and among others installed PECL zip extension 1.2.1 alpha. I'm unable to add any file to zip archive. Here is my test code: $flist = file("/courses/filelist.lst"); $zip = new Zip(); $zip->open("/courses/test1.zip"); foreach ($flist as $fl) { $fullname = $courseFolder.'/'.$fl; $zip->addFile($fullname); } $zip->close(); unset($zip); If I create zip file with one archive object is created but no files are being added. If there is no zip file new one is not created. Am I missing something here?

« previous php.pecl.dev (#3646) next »