WenRou's Blog
错误调试 Cannot modify header information - headers already sent by
2012-10-23 温柔哥
Warning: Cannot modify header information - headers already sent by (output started at /home/ouer2012/domainspshz.com/public_html/rm.php:14) in /home/ouer2012/domains/vpshz.com/public_html/rm.php on line 22

解决过程:


[实名]Laycher(37354239)  9:08:42

Warning: Cannot modify header information - headers already sent by (output started at /home/ouer2012/domains/public_html/rm.php:14) in /home/ouer2012/domains/public_html/rm.php on line 22


[实名]Laycher(37354239)  9:09:56

这个文件用过 UTF-8 无BOM编码保存。

或者用ANSI编码保存再上传试试看,应该就没有问题了



[实名]温柔哥(29329300)  9:10:25

其等有空的时候再来检查。本来博客有密码发文,但是可惜一旦静态化后就完全不行了,我只能自己写一个验证和查看页面。

实我对php也不是很精通,所以写的肯定不严密,还请见谅啊!!

谢谢,等会我看看。



rm就是real name的意思!!

[实名]Laycher(37354239)  9:11:23

擦。。。在Linux命令中是删除的意思。。



[实名]温柔哥(29329300)  9:12:31

呵呵,随手写的,本来要写成rn的,结果写成了rm



[实名]温柔哥(29329300)  9:45:24



经过Laycher提醒,认为UTF-8 无BOM编码保存,经过调试发现不是,原因在于启用session的时候,已经有内容输出,最上面加 ob_start();解决问题]

另外session前要加@
发表评论:
昵称

邮件地址 (选填)

个人主页 (选填)

内容