session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\wamp\www\gozi\Conf\config.php:1) ~runtime.php 第 7 行.
注意:[2] Cannot modify header information - headers already sent by (output started at C:\wamp\www\gozi\Conf\config.php:1) ~runtime.php 第 10 行.
注意:[2] Cannot modify header information - headers already sent by (output started at C:\wamp\www\gozi\Conf\config.php:1) ~runtime.php 第 10 行.
注意:[2] ini_set() [ref.outcontrol]: Cannot change zlib.output_compression - headers already sent ~runtime.php 第 10 行.
注意:[2] Cannot modify header information - headers already sent by (output started at C:\wamp\www\gozi\Conf\config.php:1) ~runtime.php 第 10 行.
注意:[2] Cannot modify header information - headers already sent by (output started at C:\wamp\www\gozi\Conf\config.php:1) ~runtime.php 第 10 行.
注意:[2] ini_set() [ref.outcontrol]: Cannot change zlib.output_compression - headers already sent ~runtime.php 第 10 行.
前面行已经有输出
出现echo 或者其他输出语句,就会报错;
把session_start() 放到输出语句的前面即可;
/*
* 数据库参数配置
*
*/
return array('DB_TYPE'=> 'mysql','DB_HOST'=> 'localhost','DB_NAME'=>'gozidb','DB_USER'=>'root','DB_PWD'=>'gozi','DB_PORT'=>'3306','DB_PREFIX'=>'gozi_',//'TMPL_CACHE_TIME'=>0,'AUTO_LOAD_PATH'=>'Think.Util.,ORG.Util.','DEBUG_MODE'=>true,//调试模式开启
);?>
这个文件有问题么?
是不是php.in这个文件的问题。。
或者是服务器安装的时候,文件的路径一些问题
那Cannot modify header information - headers already sent by (output started at C:\wamp\www\gozi\Conf\config.php:1) ~runtime.php 第 10 行
又是怎么回事呢?
又是怎么回事呢?
=====================================================
http返回头是有固定格式的,不允许修改。
你看config.php的第一行有没有输出?
没有的话就很可能是bom头的问题,把config.php利用编辑器另存为utf-8无bom头文件.