1 頁 (共 1 頁)

[問題] 出現錯誤 Cannot modify header information - headers

發表於 : 2005-11-04 09:43
chishenyu
錯誤訊息如下

Warning: Cannot modify header information - headers already sent by (output started at /home/hpgd/public_html/brisbane/index.php:2) in /home/hpgd/public_html/brisbane/includes/sessions.php on line 257

Warning: Cannot modify header information - headers already sent by (output started at /home/hpgd/public_html/brisbane/index.php:2) in /home/hpgd/public_html/brisbane/includes/sessions.php on line 258

Warning: Cannot modify header information - headers already sent by (output started at /home/hpgd/public_html/brisbane/index.php:2) in /home/hpgd/public_html/brisbane/includes/page_headertop.php on line 492

Warning: Cannot modify header information - headers already sent by (output started at /home/hpgd/public_html/brisbane/index.php:2) in /home/hpgd/public_html/brisbane/includes/page_headertop.php on line 494

Warning: Cannot modify header information - headers already sent by (output started at /home/hpgd/public_html/brisbane/index.php:2) in /home/hpgd/public_html/brisbane/includes/page_headertop.php on line 495

當把那4個header 和 setcookies都關掉時就可以,但是登入資訊無法儲存,登入後點選別頁就顯示沒登入,打開又有錯誤,請問如何解決

我剛把網站放在付費的空間裡,就有這問題,還請各位幫我解決一下,但是我在local 的電腦沒這問題,且我裝的廣告外掛頁面也沒問題,但在拍賣外掛有同樣問題,如有需要我可以上傳這幾個頁面

Re: [問題] 出現錯誤 headers already sent by (已解決)

發表於 : 2005-11-04 12:04
chishenyu
chishenyu 寫:錯誤訊息如下

Warning: Cannot modify header information - headers already sent by (output started at /home/hpgd/public_html/brisbane/index.php:2) in /home/hpgd/public_html/brisbane/includes/sessions.php on line 257

我已參考這篇文章,將問題解決了http://www.phpbb-tw.net/phpbb/viewtopic.php?t= ... ession.php
上面紅色數字即代表在該檔案的第2行有出現空白