PHP实时显示输出_PHP教程
程序员文章站
2022-05-27 09:41:46
...
//实时显示输出
ob_end_flush();//关闭缓存
//echo str_repeat(" ",256); //ie下 需要先发送256个字节
set_time_limit(0);
for($i=0;$iecho "Now Index is :". $i."
";
flush();
sleep(1);
}
ob_end_flush();//关闭缓存
//echo str_repeat(" ",256); //ie下 需要先发送256个字节
set_time_limit(0);
for($i=0;$iecho "Now Index is :". $i."
";
flush();
sleep(1);
}