PHP实时显示输出_php技巧
程序员文章站
2022-06-15 09:20:17
...
//实时显示输出
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);
}