我是PHP5和在我的PHP頁面我得到這個錯誤是新手時嘗試在我的PHP文件重定向到另一頁什麼是PHP警告,「無法修改標題信息」?
Warning: Cannot modify header information - headers already sent by (output started at <path to my php file>:<line number>) in <path to my php file> on line <line number>
我有幾個包括每一個可是沒有之前的任何空間之後的標籤
PHP不會騙你,輸出就在那裏。你的文件中是否有[UTF8-BOM](http://en.wikipedia.org/wiki/Byte_order_mark)標記? (他們不會出現在你的編輯器中)。在這種情況下,如果您的編輯器支持它,請嘗試保存沒有BOM,或使用您選擇的十六進制編輯器。請記住發送_any string_它的輸出,不僅僅是標籤外的着名空白,還有簡單的回聲等等。 – Wrikken 2010-10-05 21:33:36