note 36890 added to ref.zip

From: Date: Sun, 26 Oct 2003 10:58:10 +0000
Subject: note 36890 added to ref.zip
Groups: php.notes 
Request: Send a blank email to php-notes+get-59304@lists.php.net to get a copy of this message
i have upload a file.zip and this coding <?php $zip = zip_open("/file.zip");if ($zip) { while ($zip_entry = zip_read($zip)) { echo "Name: " . zip_entry_name($zip_entry) . "\n"; echo "Actual Filesize: " . zip_entry_filesize($zip_entry) . "\n"; echo "Compressed Size: " . zip_entry_compressedsize($zip_entry) . "\n"; echo "Compression Method: " . zip_entry_compressionmethod($zip_entry) . "\n"; if (zip_entry_open($zip, $zip_entry, "r")) { echo "File Contents:\n"; $buf = zip_entry_read($zip_entry, zip_entry_filesize($zip_entry)); echo "$buf\n"; zip_entry_close($zip_entry); } echo "\n"; } zip_close($zip); } but when i have executed this i got an error that is Fatal error: Call to undefined function: zip_open() in /home/wajahat/public_html/unzip.php on line 3 I do not know wheter i am doing good or not by adding this note but ...Please Help ---- Manual Page -- http://www.php.net/manual/en/ref.zip.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+36890 Delete -- http://master.php.net/manage/user-notes.php?action=delete+36890&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+36890&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#59304) next »