Home >Backend Development >PHP Tutorial >define ( "GZIP_ENABLE" function_exists ( 'ob_gzhandler' ) ); ob_start ( GZIP_EN解决办法

define ( "GZIP_ENABLE" function_exists ( 'ob_gzhandler' ) ); ob_start ( GZIP_EN解决办法

WBOY
WBOYOriginal
2016-06-13 11:56:501013browse

define ( "GZIP_ENABLE", function_exists ( 'ob_gzhandler' ) ); ob_start ( GZIP_EN
我重装了wamp之后,为什么我在入口文件加入define ( "GZIP_ENABLE", function_exists ( 'ob_gzhandler' ) );
ob_start ( GZIP_ENABLE ? 'ob_gzhandler' : null );这段代码后就可以正常访问http://localhost/saetp/?m=Register&a=register&wxcount=o-CsGuPRWmejitXUXzfUBzntg77E,

<?php<br />//确定应用名称<br />define ('APP_NAME','Home');<br />//确定应用路径<br />define ('APP_PATH','./Home/');<br />define('APP_DEBUG', true);<br />define('PATH', dirname(__FILE__));<br />define('Server','localhost');<br />define('Key','123456');<br />//引入核心文件<br />define ( "GZIP_ENABLE", function_exists ( 'ob_gzhandler' ) );<br />ob_start ( GZIP_ENABLE ? 'ob_gzhandler' : null );<br />// 加载框架入口文件<br />require( "./ThinkPHP/Extend/Engine/Sae.php");<br />//require './ThinkPHP/ThinkPHP.php';<br />

先前是不需要加的,请问是我PHP代码的问题还是wamp配置的问题
------解决方案--------------------
原来是你。还没搞定?
这个应该是环境的问题,当然跟程序的写法也是有关联的。

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