Home  >  Article  >  Backend Development  >  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-23 13:57:261066browse

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

先前是不需要加的,请问是我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