/* [<][>][^][v][top][bottom][index][help] */
<?php
if (!extension_loaded('zip')) {
dl('zip.so');
}
$zip = new ZipArchive();
echo $zip->filename . "\n";
$zip->open("test.zip");
/*
$zip->addFile("./modules/");
$zip->addFile("./testempty");
*/
echo $zip->status . "\n";
echo $zip->statusSys . "\n";
echo $zip->numFiles . "\n";
echo $zip->filename . "\n";
var_dump($zip);
$files = array('test', 'testdir/test2');
if (!$zip->extractTo("./testext/path/to", $files)) {
echo "error!\n";
echo $zip->status . "\n";
echo $zip->statusSys . "\n";
}
$zip->close();