php 脚本 浏览器缓存实时输出

在执行的php 方法 最上面加上下面几行代码

set_time_limit(0);
ob_end_clean();
ob_implicit_flush();
header('X-Accel-Buffering: no'); // 关键是加了这一行。

posted @ 2020-04-16 15:28  加菲猫and大白  阅读(226)  评论(0编辑  收藏  举报