After the php file of GB2312 is converted to the UTF-8 format, the php program will run with the header has sent such an error prompt (when trying to open the session ). Error: Code: Warning: Cannotmodifyheaderinformation-headersalreadysentby (after the php file of outputstartedat/home/yoy GB2312 is converted to UTF-8 format, when the php program is running, the following error message (when trying to open the session) appears ).
The error is as follows:
Code:
Warning: Cannot modify header information-headers already sent by (output started at/home/yoyo/public_html/blog/index. php: 1) in/home/yoyo/public_html/blog/global. php on line 11
?
Warning: Cannot modify header information-headers already sent by (output started at/home/yoyo/public_html/blog/index. php: 1) in/home/yoyo/public_html/blog/global. php on line 35
|
This error usually occurs when there is output on the page before the session is opened. in IE, there is no output, but in firefox, before the formal page output, there is a garbled byte. This garbled code is the cause of the error (it was output before the session ).
Solution: Find the file with an error prompt, download it, open it with the editor (the latest editplus version is recommended), copy the code, delete the file, and recreate a new file, copy the code just now, when saving files, must be saved into a UTF-8, upload overwrite the original file, should be good.