Forum Moderators: coopster
<?php
ob_start('ob_gzhandler');
?>
How can I set a level of compression with this code?
And how can I verify if the level is working or not?
I know about [leknor.com...] , but it is too basic and don't give the compression level.
Thanks in advance,
Brakkar
I don't think you are going to be able to. You should probably be using gzcompress [php.net] if you need to set the compression level. Have you read through the PHP manual pages for ob_gzhandler [php.net]? There is a note in there from the developers...
Note: You cannot use both ob_gzhandler() and ini.zlib.output_compression. Also note that using ini.zlib.output_compression is preferred over ob_gzhandler().
I'm not sure how to verify the level of compression specified actually occurred. Anyone else?