After completion, you can check the result through the phpinfo() function, when the Local Value and MasterValue of zlib.output_compression are both On. , indicating that it has taken effect. The PHP pages visited at this time (including pseudo-static pages) have been GZIP compressed, and the compression effect is detected through Firebug or online web page GZIP compression detection tools. If you need to use ob_gzhandler (default), you need to turn off zlib.output_compression and change the content of the php.ini file to:
Note: ob_gzhandler is the recommended usage for most programs (discuz, phpwind, etc.), it is recommended that you use it. |