PDA

查看完整版本 : mysql出错


feinst
2001-03-20, 23:28
我在redhat7中用php访问mysql用setcookie()时,出现下列问题,请问是什么原因,该如何解决,谢谢
Warning: Cannot add header information - headers already sent by (output started at header.php:7) in include_file.php on line 50

子夜游魂
2001-03-21, 09:49
你仔细看php手册,其中对setcookie函数有明确说明,就是这个函数必须放在所有的输出之前。也就是说,在setcookie函数前不能有任何输出html的语句,否则就会报错。仔细检查一下吧。