PHP output compression
In php.ini file
zlib.output_compression=On
zlib.output_compression_level=5
If you use ob_start() (output buffering)Â in php script:
use ob_start(’ob_gzhandler‘);
Using both will not get the output compressed twice
, there will be an error reporting confliction instead.