1 頁 (共 1 頁)

How to solve the Warning Cannot Modify Header Information?

發表於 : 2013-01-07, 13:54
phpguys
"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.