本人用的是APMServ5.2.6运行环境测试程序,改代码的时候不记得不小心改了什么,很多页面都整个向左侧过去了,有下面这段报错:
Warning: Cannot modify header information - headers already sent by (output started at F:\php\APMServ5.2.6\www\htdocs\c7admin\admincp.php:1) in F:\php\APMServ5.2.6\www\htdocs\include\admin.inc.php on line 10
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at F:\php\APMServ5.2.6\www\htdocs\c7admin\admincp.php:1) in F:\php\APMServ5.2.6\www\htdocs\c7admin\admincp.php on line 11
麻烦各位帮忙解释一下
Warning: Cannot modify header information - headers already sent by (output started at F:\php\APMServ5.2.6\www\htdocs\c7admin\admincp.php:1) in F:\php\APMServ5.2.6\www\htdocs\include\admin.inc.php on line 10
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at F:\php\APMServ5.2.6\www\htdocs\c7admin\admincp.php:1) in F:\php\APMServ5.2.6\www\htdocs\c7admin\admincp.php on line 11
麻烦各位帮忙解释一下
在这之前都不能有输出。检查下前面是否有输出:
1.是否echo ;
2."<php"标记前是否有空格或回车什么的
3.保存文件的时候,是否选择了保存文件的bom头
<?php
@session_start();
?>
session_start前面不能有任何字符
服务器发送的内容是 head(头)+Content(内容),先是头,后是内容...
如果发送了一个空格,默认就是已经发送内容了,此时头已经按默认的发送了..这时就不能再修改 head头信息了