Lines Matching refs:zip
6 if(!extension_loaded('zip')) die('skip');
12 $file = $dirname . '__tmp_oo_rename.zip';
16 $zip = new ZipArchive;
17 if (!$zip->open($file, ZIPARCHIVE::CREATE)) {
21 $zip->addFromString('entry1.txt', 'entry #1');
22 $zip->addFromString('entry2.txt', 'entry #2');
23 $zip->addFromString('dir/entry2d.txt', 'entry #2');
25 if (!$zip->status == ZIPARCHIVE::ER_OK) {
26 echo "failed to write zip\n";
28 $zip->close();
30 if (!$zip->open($file)) {
35 var_dump($zip->getNameIndex(0));
36 var_dump($zip->getNameIndex(1));
37 var_dump($zip->getNameIndex(2));
38 var_dump($zip->getNameIndex(3));
40 $zip->close();