2009年9月10日

php 实现gzip压缩

摘要: 前提服务器(虚拟主机)不支持gzip压缩,那么我们在打开页面的时候会占用很大的流量,并直接导致网页下载速度变慢下面用php自己实现文件的gzip压缩假设有a.html文件<?phpoob_start();$data = file_get_contents('index.html');header('Cache-Control: max-age=43200');header("Expires:... 阅读全文

posted @ 2009-09-10 13:34 eoiioe 阅读(739) 评论(0) 推荐(1) 编辑

导航