Back to index

php5  5.3.10
extractAll.php
Go to the documentation of this file.
00001 <?php
00002 $zip = new ZipArchive();
00003 
00004 echo $zip->filename . "\n";
00005 $zip->open("test.zip");
00006 /*
00007 $zip->addFile("./modules/");
00008 $zip->addFile("./testempty");
00009 */
00010 echo $zip->status . "\n";
00011 echo $zip->statusSys . "\n";
00012 
00013 echo $zip->numFiles . "\n";
00014 echo $zip->filename . "\n";
00015 var_dump($zip);
00016 $files = array('test', 'testdir/test2');
00017 if (!$zip->extractTo("./testext/path/to")) {
00018        echo "error!\n";
00019        echo $zip->status . "\n";
00020        echo $zip->statusSys . "\n";
00021 
00022 }
00023 
00024 $zip->close();