note 36890 rejected from ref.zip by didou
| From: | didou@php.net | Date: | Sun, 26 Oct 2003 15:35:02 +0000 |
| Subject: | note 36890 rejected from ref.zip by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-59323@lists.php.net to get a copy of this message | ||
Note Submitter: jsheryaar@yahoo.com
----
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