Display output in parts in PHP

前端 未结 6 867
春和景丽
春和景丽 2020-11-29 11:59

I have this code:

\";          
    usleep(100000); 
}

?>

I would like to

6条回答
  •  悲&欢浪女
    2020-11-29 12:33

    In my experience there is no reliable way to make a webpage send output data in realtime.

    There are many different places where it can go wrong - and while you can easily get it to work on a single situation there will always be other places where the solution does not work.

    Ultimately the only reliable solution is to execute your php code from a shell prompt (via SSH or whatever) and completely bypass apache and web browsers.

提交回复
热议问题