可能重複:
Cannot send session cookie - headers already sent
Headers already sent by PHP頭在php中有錯誤,爲什麼?
我以前的問題是爲UTF-8,但現在!再次我的代碼生成此錯誤:
Warning: Cannot modify header information - headers already sent by (output started at F:\xampp\htdocs\1\error_list.php:34) in F:\xampp\htdocs\1\error_list.php on line 75
爲什麼?
我的代碼是:
header("location:list.php?msg=Please enter some username and password");
此錯誤已被討論過百萬次 – emaillenin 2011-12-25 13:46:15
文件是UTF-8/Unicode嗎? – PeeHaa 2011-12-25 13:49:06
謝謝你是UTF8! – Freeman 2011-12-25 14:45:28