How to solve the Warning Cannot Modify Header Information?

電腦問題求助 有問必答 手提電腦, 電腦問答, 電腦維修及修理, computer, software, hardware, network, tips and more.
回覆文章

phpguys
文章: 2
註冊時間: 2013-01-07, 13:41

How to solve the Warning Cannot Modify Header Information?

文章 phpguys » 2013-01-07, 13:54

"Warning: Cannot modify header information - headers already sent by (output started at /home..."

Make sure there is no empty spaces before <?php or after ?> in the php files.

The error was consistent until I removed BOM formatting.

You can easy do it with Notepad++ on Encoding menu choose encode Utf8 without BOM and save.


回覆文章

回到「電腦資訊 電腦技術 有問必答 Computer Tech, Software, Hardware, Q&A」

誰在線上

正在瀏覽這個版面的使用者:沒有註冊會員 和 2 位訪客