Lines Matching refs:zip
4 zip
9 $file = $dirname . 'oo_namelocate.zip';
13 $zip = new ZipArchive;
14 if (!$zip->open($file, ZIPARCHIVE::CREATE)) {
18 $zip->addFromString('entry1.txt', 'entry #1');
19 $zip->addFromString('entry2.txt', 'entry #2');
20 $zip->addFromString('dir/entry2d.txt', 'entry #2');
22 if (!$zip->status == ZIPARCHIVE::ER_OK) {
23 echo "failed to write zip\n";
25 $zip->close();
27 if (!$zip->open($file)) {
32 var_dump($zip->locateName('entry1.txt'));
33 var_dump($zip->locateName('eNtry2.txt'));
34 var_dump($zip->locateName('eNtry2.txt', ZIPARCHIVE::FL_NOCASE));
35 var_dump($zip->locateName('enTRy2d.txt', ZIPARCHIVE::FL_NOCASE|ZIPARCHIVE::FL_NODIR));
36 $zip->close();
46 unlink(__DIR__ . '/oo_namelocate.zip');