note 118272 added to class.ziparchive
| From: | ohcc at 163 dot com | Date: | Fri, 06 Nov 2015 20:58:45 +0000 |
| Subject: | note 118272 added to class.ziparchive | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-204098@lists.php.net to get a copy of this message | ||
<?php
//use bzip2 + ZipArchive to reduce file size of your zip archives.
$zip = new ZipArchive;
$zip->open('i.zip',ZIPARCHIVE::CREATE|ZIPARCHIVE::OVERWRITE);
$file='wuxiancheng.cn.sql';
$bzFilename = $file.'.bz2';
$sql = file_get_contents($file);
$sql = bzcompress($sql,9);
$zip->addFromString($bzFilename,$sql);
$zip->setArchiveComment('zipped on '.date('Y-M-d'));
?>
----
Server IP: 72.52.91.14
Probable Submitter: 118.117.77.220
----
Manual Page -- http://php.net/manual/en/class.ziparchive.php
Edit -- https://master.php.net/note/edit/118272
Del: integrated -- https://master.php.net/note/delete/118272/integrated
Del: useless -- https://master.php.net/note/delete/118272/useless
Del: bad code -- https://master.php.net/note/delete/118272/bad+code
Del: spam -- https://master.php.net/note/delete/118272/spam
Del: non-english -- https://master.php.net/note/delete/118272/non-english
Del: in docs -- https://master.php.net/note/delete/118272/in+docs
Del: other reasons-- https://master.php.net/note/delete/118272
Reject -- https://master.php.net/note/reject/118272
Search -- https://master.php.net/manage/user-notes.php