i am using the Gzip commpressionand Zlib commpression to speed up my website
I have used below code
ob_start("ob_gzhandler");
in common file that are include on all pages and
lib.output_compression = On
But after this i get the error like
"Warning: ob_start() [ref.outcontrol]: output handler 'ob_gzhandler' conflicts with 'zlib output compression' in E:\xampp\htdocs\projects\trunk\index.php on line 2"
Can any one suggest me what's wrong in it?
You should check if the zlib library loaded then clean the turn off output buffering by doing ob_end_clean()
You can add this line in the top of your file :
<?php if (extension_loaded('zlib')){ ob_end_clean(); ob_start('ob_gzhandler');} ?>
Search line below in your php.ini file:
zlib.output_compression = On
change for:
zlib.output_compression = Off
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With