Back to index

php5  5.3.10
dir.php
Go to the documentation of this file.
00001 <?php
00002 if (!extension_loaded('zip')) {
00003     dl('zip.so');
00004 }
00005 
00006 $za = new ZipArchive();
00007 
00008 $za->open('test_with_comment.zip');
00009 print_r($za);
00010 var_dump($za);
00011 echo "numFiles: " . $za->numFiles . "\n";
00012 echo "status: " . $za->status  . "\n";
00013 echo "statusSys: " . $za->statusSys . "\n";
00014 echo "filename: " . $za->filename . "\n";
00015 echo "comment: " . $za->comment . "\n";
00016 
00017 for ($i=0; $i<$za->numFiles;$i++) {
00018        echo "index: $i\n";
00019        print_r($za->statIndex($i));
00020 }
00021 echo "numFile:" . $za->numFiles . "\n";