define ( "GZIP_ENABLE", function_exists ( 'ob_gzhandler' ) ); ob_start ( GZIP_EN

WBOY
Release: 2016-06-23 13:57:26
Original
997 people have browsed it

我重装了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';
Copy after login

先前是不需要加的,请问是我PHP代码的问题还是wamp配置的问题


回复讨论(解决方案)

原来是你。还没搞定?
这个应该是环境的问题,当然跟程序的写法也是有关联的。

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!