PHP sets the code to output results while executing. Copy the code as follows :? Phpset_time_limit (10); ob_end_clean (); before loop output, disable the output buffer echostr_pad (, 1024). The browser accepts a certain length of output content.
The code is as follows:
Set_time_limit (10 );
Ob_end_clean (); // disable the output buffer before loop output.
Echo str_pad (', 1024 );
// The browser will not display the buffer output before accepting the output of a certain length. the length value is IE 256, and Firefox is 1024.
For ($ I = 1; $ I <= 100; $ I ++ ){
Echo $ I .'
';
Flush (); // refresh the output buffer
Sleep (1 );
}
?>
The http://www.bkjia.com/PHPjc/313506.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/313506.htmlTechArticle code is as follows :? Php set_time_limit (10); ob_end_clean (); // close the output buffer echo str_pad ('', 1024) before loop output ); // The browser accepts the output of a certain length of content...