doujie4050 2009-04-06 01:40
浏览 28
已采纳

PHP即时回声

I have quite a long data mining script, and in parts of it I echo some information to the page (during a foreach loop, actually.)

However I am noticing that the information is being sent to the browse not immediately as I had hoped, but in 'segments'.

Is there some function I can use after my echo to send all the data to the browser immediately?

Thanks.

  • 写回答

10条回答 默认 最新

  • du7999 2009-04-06 01:43
    关注

    You probably want flush(). However, PHP may be using output buffering. There are a few ways that this can change things, but in a nutshell, you can flush(), then ob_flush().

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(9条)

报告相同问题?

悬赏问题

  • ¥15 结构功能耦合指标计算
  • ¥20 visual studio中c语言用ODBC链接SQL SERVER
  • ¥50 AI大模型精调(百度千帆、飞浆)
  • ¥15 非科班怎么跑代码?如何导数据和调参
  • ¥15 福州市的全人群死因监测点死亡原因报表
  • ¥15 Altair EDEM中生成一个颗粒,并且各个方向没有初始速度
  • ¥15 系统2008r2 装机配置推荐一下
  • ¥15 悬赏Python-playwright部署在centos7上
  • ¥15 psoc creator软件有没有人能远程安装啊
  • ¥15 快速扫描算法求解Eikonal方程咨询