Copy code The code is as follows:
set_time_limit(10);
ob_end_clean(); // Before looping output, close the output buffer
echo str_pad('',1024);
//The browser will not display the buffered output before accepting the output of a certain length of content. This length value IE is 256, Firefox is 1024
for($i=1;$i<=100;$i++){
echo $i.'
';
flush(); // Flush the output buffer
sleep(1);
}
?>
http://www.bkjia.com/PHPjc/313506.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/313506.htmlTechArticleCopy the code as follows: ?php set_time_limit(10); ob_end_clean(); //Before loop output, you need to Close the output buffer echo str_pad('',1024); //The browser is accepting output of a certain length of content...