安装phpcms时出现Warning: ob_start(): output handler \'ob_gzhandler\' conflicts with \'zlib
生活随笔
收集整理的這篇文章主要介紹了
安装phpcms时出现Warning: ob_start(): output handler \'ob_gzhandler\' conflicts with \'zlib
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
1、 解決方法一:
打開phpcms/base.php,在第57行,修改如下:if(pc_base::load_config('system','gzip') && function_exists('ob_gzhandler')) {//加上如下這段代碼ob_end_clean();ob_start('ob_gzhandler');
} else {ob_start();
}2、解決方法二:
在install_package/caches/configs/下的system.php中找到gzip,修改如下:'gzip' => 0, //是否Gzip壓縮后輸出
?
總結(jié)
以上是生活随笔為你收集整理的安装phpcms时出现Warning: ob_start(): output handler \'ob_gzhandler\' conflicts with \'zlib的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Win10下IIS配置图解、MVC项目发
- 下一篇: php 函数中静态变量的问题