Is it possible to change the compression level and/or method used by the ZipArchive
class?
views:
250answers:
2
+2
A:
This is currently not possible, according to the open bug report feature request on php.net.
soulmerge
2009-12-02 14:28:46
+1
A:
As stated in previous post, you can't do it with Zip. If specifying a compression level is more important than the archiving method, then PHP zlib allows it:
string gzcompress ( string $data [, int $level = -1 ] )
$level - The level of compression. Can be given as 0 for no compression up to 9 for maximum compression.
Indrek
2009-12-02 14:41:28