Back to index

php5  5.3.10
oldapi.php
Go to the documentation of this file.
00001 <?php
00002 
00003 $zip = zip_open('examples/test1.zip');
00004 var_dump($zip);
00005 
00006 if ($zip) {
00007        $i = 0;
00008        while ($zip_entry = zip_read($zip)) {
00009               var_dump($zip_entry);
00010               $txt = zip_entry_read($zip_entry, 10);
00011         echo $i . ": " . $txt . "size: " . zip_entry_filesize($zip_entry) . 
00012                      "comp_method: " . zip_entry_compressionmethod($zip_entry) . 
00013                      "\n";
00014               $i++;
00015        }
00016        var_dump($zip_entry);
00017 }