I have this code:
\";
usleep(100000);
}
?>
I would like to
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.