Lines Matching refs:zip
4 zip
8 $file = $dirname . 'oo_delete.zip';
13 $zip = new ZipArchive;
14 if (!$zip->open($file, ZIPARCHIVE::CREATE)) {
17 $zip->addFromString('entry1.txt', 'entry #1');
18 $zip->addFromString('entry2.txt', 'entry #2');
19 $zip->addFromString('dir/entry2.txt', 'entry #2');
21 if ($zip->status == ZIPARCHIVE::ER_OK) {
22 $zip->close();
25 var_dump($zip);
29 if (!$zip->open($file, ZIPARCHIVE::CREATE)) {
33 if ($zip->deleteIndex(0)) {
37 if ($zip->deleteName('entry2.txt')) {
43 if ($zip->deleteName('dir/entry2.txt')) {
49 if (!$zip->deleteIndex(123)) {
52 print_r($zip);
57 $sb = $zip->statIndex(0);
59 $sb = $zip->statIndex(1);
61 $sb = $zip->statIndex(2);
64 @$zip->close();
65 unset($zip);