Lines Matching refs:zip
5 if(!extension_loaded('zip')) die('skip');
11 $file = $dirname . '__tmp_oo_rename.zip';
15 $zip = new ZipArchive;
16 if (!$zip->open($file, ZIPARCHIVE::CREATE)) {
20 $zip->addFromString('entry1.txt', 'entry #1');
21 $zip->addFromString('entry2.txt', 'entry #2');
22 $zip->addFromString('dir/entry2d.txt', 'entry #2');
24 if (!$zip->status == ZIPARCHIVE::ER_OK) {
25 echo "failed to write zip\n";
27 $zip->close();
29 if (!$zip->open($file)) {
34 var_dump($zip->getNameIndex(0));
35 var_dump($zip->getNameIndex(1));
36 var_dump($zip->getNameIndex(2));
37 var_dump($zip->getNameIndex(3));
39 $zip->close();