Ben ZIPARCHIVE sıkıştırma düzeyini değiştirebilir miyim?

2 Cevap php

O ZipArchive sınıfı tarafından kullanılan sıkıştırma seviyesi ve / veya yöntemini değiştirmek mümkün mü?

2 Cevap

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  ] )

$ Seviyesi - sıkıştırma düzeyi. Maksimum sıkıştırma için 9'a hiçbir sıkıştırma up için 0 olarak verilebilir.

http://php.net/manual/en/book.zlib.php