Home  >  Article  >  Backend Development  >  php5.3开启gzip

php5.3开启gzip

WBOY
WBOYOriginal
2016-06-23 13:43:49818browse

找到php.ini并编辑

output_buffering = Off
output_handler =
zlib.output_compression = On

这3个选项设置如上所示,重启apache

然后在google浏览器里打开网站,按f12查看请求头


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn