gzip to max 9
| From: | Decapode Azur | Date: | Sat, 09 Aug 2003 16:42:20 +0000 |
| Subject: | gzip to max 9 | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-158991@lists.php.net to get a copy of this message | ||
Dear All,
<?php
function wrl2wrz($buffer) { return gzencode ($buffer, 9); }
ob_start("wrl2wrz");
/* here the file */
ob_end_flush(); # end of the output buffering
?>
In this exemple with output beffering it is possible to select the maximum
compression level,
is it possible to select the maximum compression level too
when writing in a file like below ??
$gzp = fopen($output_file, 'w');
gzwrite($gzp, $content);
gzclose($gzp);
I think that the default compression level here is 6,
and I would like to bring it to the maximum value 9.
--
cheers