Lines Matching refs:zip
4 zip
14 $file = $dirname . 'tmp.zip';
17 $zip = new ZipArchive;
18 if (!$zip->open($file, ZipArchive::CREATE)) {
22 $zip->addEmptyDir('foo');
23 $zip->addEmptyDir(chr(0x82), ZipArchive::FL_ENC_CP437);
24 $zip->addEmptyDir('è', ZipArchive::FL_ENC_UTF_8);
26 $zip->addFromString('bar', __FILE__);
27 $zip->addFromString(chr(0x91), __FILE__, ZipArchive::FL_ENC_CP437);
28 $zip->addFromString('€', __FILE__, ZipArchive::FL_ENC_UTF_8);
30 if ($zip->status == ZIPARCHIVE::ER_OK) {
31 dump_entries_name($zip);
32 $zip->close();
40 unlink($dirname . 'tmp.zip');