首页 新闻 赞助 找找看

php设置cooke报错

0
[已解决问题] 解决于 2012-05-08 13:02

Warning: Cannot modify header information - headers already sent by (output started at F:\php_work\bbs\header.php:6) in F:\php_work\bbs\test.php on line 3

 

(Cannot modify header information - headers already sent by)不能修改标题信息-标题已发出 ????这什么意思

PHP
unbreakable的主页 unbreakable | 初学一级 | 园豆:111
提问于:2012-05-04 15:36
< >
分享
最佳答案
0

这是因为你先输出页面内容,然后设置cookie引起的。

将设置cookie的代码移至页面输出之前。

参考:

setcookie, Cannot modify header information - headers already sent

奖励园豆:5
dudu | 高人七级 |园豆:31075 | 2012-05-04 16:23
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册