diff options
author | SVN Migration <svn@php.net> | 2006-07-24 16:58:59 +0000 |
---|---|---|
committer | SVN Migration <svn@php.net> | 2006-07-24 16:58:59 +0000 |
commit | 664d102aa65af165bf25163b220424e67241369c (patch) | |
tree | b646eb8123fe74905c50450b3971826383c41b75 /ext/zip/examples/oldapi.php | |
parent | 467e129ce5aae75bc23ad69f7c4f66985382bd5a (diff) | |
download | php-git-664d102aa65af165bf25163b220424e67241369c.tar.gz |
This commit was manufactured by cvs2svn to create branch 'PHP_5_2'.
Diffstat (limited to 'ext/zip/examples/oldapi.php')
-rw-r--r-- | ext/zip/examples/oldapi.php | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/ext/zip/examples/oldapi.php b/ext/zip/examples/oldapi.php new file mode 100644 index 0000000000..2f17f43ebd --- /dev/null +++ b/ext/zip/examples/oldapi.php @@ -0,0 +1,17 @@ +<?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); +} |