Use ob_flush prompt: E_WARNING: Cannotmodifyheaderinformation use ob_flush prompt: E_WARNING: & nbsp; Cannot & nbsp; modify & nbsp; header & nbsp; information & nbsp;-& nbsp; headers & nbs use ob_flush prompt: E_WARNING: Cannot modify header information
Use ob_flush prompt: E_WARNING: Cannot modify header information-headers already sent
How can this problem be solved?
The code is as follows:
Echo $ show_msg. "script" $ script "";
Ob_flush ();
Flush (); share:
------ Solution --------------------
The error message is clearly written, and the response header has been output, so you cannot modify the header information.
It should be because you did not open a new ob and directly output the data (with the response header output at the same time). by default, the data is directly sent to the browser.
When ob is used, the data is first written in ob, and then the content in ob is output.
------ Solution --------------------
function flush_buffers(){
ob_end_flush();
ob_flush();
flush();
ob_start();
}
------ Solution --------------------
Unless a syntax error occurs, nothing can be done before the #10 code!
However, an error may occur when header, session_start, and setcookie are added.
You 'd better post the complete error message