If you are under Linux, first confirm whether to add ob_start() and ob_flush().
Copy the code The code is as follows:
ob_start();
for ($i=1; $i<=10; $i++) {
echo $i."
n"; > flush(); >Copy code
The code is as follows:
header("Content-Type: text/html;charset=utf8;");
ob_start();
for ($i=1; $i<=10; $i++) {
echo $i." usleep(500000);
}
http://www.bkjia.com/PHPjc/327921.html
www.bkjia.com
true
http: //www.bkjia.com/PHPjc/327921.html
TechArticle
If it is under Linux, first confirm whether to add ob_start() and ob_flush(). Copy the code as follows: ob_start (); for ($i=1; $i=10; $i++) { echo $i."br /n"; ob_flush(); flush(); usl...