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)不能修改标题信息-标题已发出 ????这什么意思
这是因为你先输出页面内容,然后设置cookie引起的。
将设置cookie的代码移至页面输出之前。
参考:
setcookie, Cannot modify header information - headers already sent