cvs: pecl /zip/examples oldapi.php
| From: | Pierre-Alain Joye | Date: | Sun, 12 Mar 2006 14:58:23 +0000 |
| Subject: | cvs: pecl /zip/examples oldapi.php | ||
| Groups: | php.pecl.cvs | ||
| Request: | Send a blank email to pecl-cvs+get-5428@lists.php.net to get a copy of this message | ||
pajoye Sun Mar 12 14:58:23 2006 UTC
Added files:
/pecl/zip/examples oldapi.php
Log:
- add oldapi example
http://cvs.php.net/viewcvs.cgi/pecl/zip/examples/oldapi.php?view=markup&rev=1.1
Index: pecl/zip/examples/oldapi.php
+++ pecl/zip/examples/oldapi.php
<?php
$zip = zip_open('examples/test1.zip');
var_dump($zip);
if ($zip) {
$i = 0;
while ($zip_entry = zip_read($zip)) {
var_dump($zip_entry);
$txt = zip_entry_read($zip_entry, 10);
echo $i . ": " . $txt . "size: " . zip_entry_filesize($zip_entry) .
"comp_method: " . zip_entry_compressionmethod($zip_entry) .
"\n";
$i++;
}
var_dump($zip_entry);
}