Re: sleep() & flush()
| From: | Andrian Pervazov | Date: | Fri, 25 Aug 2000 13:37:45 +0000 |
| Subject: | Re: sleep() & flush() | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-2139@lists.php.net to get a copy of this message | ||
1193-639-1 wrote:
>
> this snip will not work: nor with 3.0.16 or 4.0.2 dev
> not online nor local!
> what's wrong eh?
> <?
> $t="This is a silly text!\n<br>";
> print $t;
> flush();flush();flush();flush(); //nothing happens! not even you send
> thausands of flush()
> sleep(25); //after 25 seconds you'll see both lines
> at once
> echo $t;
> ?>
>
> PHP = Paranoid Heuristic Professor?
>
> :-)
> Klaus
It works for me on PHP 4 RC2 on Linux and PHP 3.0.16 on Win 2000 (I
tried a slightly ifferent code, as I didn't have the time to wit 25
seconds :-)
$t="This is a silly text!\n<br>";
print $t;
flush();
sleep(5);
echo $t;
Andrian