Lines Matching refs:zip
4 zip
8 $filename = $thisdir . "/bug47667.zip";
10 $zip = new ZipArchive();
11 if ($zip->open($filename, ZipArchive::CREATE) !== true) {
12 exit("Unable to open the zip file");
14 $zip->addFromString('foo.txt', 'foo bar foobar');
15 $zip->close();
19 $zip = new ZipArchive();
20 if ($zip->open($filename, ZipArchive::OVERWRITE) !== true) {
21 exit("Unable to open the zip file");
23 $zip->addFromString("foo_{$i}.txt", 'foo bar foobar');
24 $zip->close();
27 $zip = new ZipArchive();
28 if ($zip->open($filename, ZipArchive::CREATE) !== true) {
29 exit("Unable to open the zip file");
32 echo "files: " , $zip->numFiles;
33 $zip->close();