GZip压缩 设置问题  已解决

Zen Cart的安装、设置、升级讨论和使用技巧交流

版主: 赞拓拓, shaning, 美拓拓

GZip压缩 设置问题  已解决

帖子gueston » 2009-05-15 22:56

我用的是GODADDY的免费LINUX 5.0PHP ,以前用他们WINDOWS的时候打开GZip 没问题,但现在转成linux后,打开GZip却显示不了了,整个页面就显示一个问号, 后来我把
init_gzip 这个文件的1改成0 整个网站就OK了。
不知道有认证能告诉 我这是什么问题,怎么解决

<?php

/**

* if gzip_compression is enabled, start to buffer the output

* see {@link http://www.zen-cart.com/wiki/index.php/ ... InitSystem wikitutorials} for more details.

*

* @package initSystem

* @copyright Copyright 2003-2005 Zen Cart Development Team

* @copyright Portions Copyright 2003 osCommerce

* @todo ICW note some of this can go if we move to php>4.2

* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0

* @version $Id: init_gzip.php 2753 2005-12-31 19:17:17Z wilt $

*/

if (!defined('IS_ADMIN_FLAG')) {

die('Illegal Access');

}

if ( (GZIP_LEVEL == '0') && ($ext_zlib_loaded = extension_loaded('zlib')) && (PHP_VERSION >= '4') ) {

if (($ini_zlib_output_compression = (int)ini_get('zlib.output_compression')) < 1) {

if (PHP_VERSION >= '4.0.4') {

ob_start('ob_gzhandler');

} else {

/**

* include the gzip compression functions

*/

include(DIR_WS_FUNCTIONS . 'gzip_compression.php');

ob_start();

ob_implicit_flush();

}

} else {

@ini_set('zlib.output_compression_level', GZIP_LEVEL);

}

}

?>
gueston
高级会员
高级会员
 
帖子: 191
注册: 2009-03-10 20:41

Re: GZip压缩 设置问题

帖子浩霖 » 2009-05-16 0:11

眼拙,看不出所以然,不知想说什么?
浩霖
高级会员
高级会员
 
帖子: 220
注册: 2009-03-19 10:43

Re: GZip压缩 设置问题

帖子radnows » 2009-05-16 10:18

说明你的主机不支持gzip功能
头像
radnows
论坛版主
论坛版主
 
帖子: 3128
注册: 2005-08-09 23:57
地址: radnows.com


回到 安装设置

 


  • 相关话题
    回复总数
    阅读次数
    最新文章

在线用户

正在浏览此版面的用户:Yahoo [Bot] 和 4 位游客