Lines Matching full:zip
293 static $zip;
295 if($path && !$zip) {
296 $zip = new ZipArchive;
297 $zip->open($path);
300 return $zip;
304 static $zip;
307 if(!$zip) {
308 $zip = epub_zip_handle();
309 if($zip) $oebps = epub_get_oebps();
311 if($zip) {
313 $zip->addFile($file, "OEBPS/$url");
319 Adds content.opf and toc.ncx to zip file and closes it
322 $zip = epub_zip_handle() ;
323 if(!$zip) return false;
326 $zip->close();
428 $zip = epub_zip_handle($dir . 'my-book.epub');
429 if($zip) {
430 $zip->addFile(EPUB_DIR . 'scripts/package/container.xml', 'META-INF/container.xml');
432 $zip->addFile(EPUB_DIR . 'scripts/package/title.html', 'OEBPS/Text/title.html');
433 $zip->addFile(EPUB_DIR . 'scripts/package/cover.png', 'OEBPS/Images/cover.png');
459 echo rawurlencode("*nix zip command used \n");
460 $cmd = 'zip -Xr9Dq my-book.epub *';
463 echo "zip error: exit status=$ret\n";
464 …: memory allocation error\n 11-18: unable write to or create file\n 127: zip command not found\n…
512 $z->add_File('application/epub+zip', 'mimetype', 0);