Php gzip 相关资料
728x15 ad here
出自Guoshuang Wiki
关于PHP中gzip压缩
if(eregi('gzip',$_SERVER['HTTP_ACCEPT_ENCODING'])) {
ob_start('ob_gzhandler');//启用gzip压缩
}
这里可以检测您的页面是否被压缩了:
http://www.port80software.com/products/httpzip/compresscheck?url=http%3A%2F%2Fgoaler.info
Note: You cannot use both ob_gzhandler() and zlib.output_compression. Also note that using zlib.output_compression is preferred over ob_gzhandler().
http://www.php.net/zlib
http://www.php.net/manual/zh/function.gzdecode.php
http://www.php.net/ob_gzhandler
