Lines Matching refs:zip
6 if(!extension_loaded('zip')) die('skip');
11 $filename = $thisdir . "/bug47667.zip";
13 $zip = new ZipArchive();
14 if ($zip->open($filename, ZipArchive::CREATE) !== true) {
15 exit("Unable to open the zip file");
17 $zip->addFromString('foo.txt', 'foo bar foobar');
18 $zip->close();
22 $zip = new ZipArchive();
23 if ($zip->open($filename, ZipArchive::OVERWRITE) !== true) {
24 exit("Unable to open the zip file");
26 $zip->addFromString("foo_{$i}.txt", 'foo bar foobar');
27 $zip->close();
30 $zip = new ZipArchive();
31 if ($zip->open($filename, ZipArchive::CREATE) !== true) {
32 exit("Unable to open the zip file");
35 echo "files: " , $zip->numFiles;
36 $zip->close();