Re: Delaying Printed Output
| From: | CC Zona | Date: | Sat, 24 Mar 2001 19:06:02 +0000 |
| Subject: | Re: Delaying Printed Output | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-45438@lists.php.net to get a copy of this message | ||
In article <3ABCEA73.9090305@midway.tds.net>,
gscott@midway.tds.net (Greg Scott) wrote:
> > sleep(seconds);
> > usleep(microseconds);
>
> I've tried those 2 functions, in an example like this:
>
> PRINT "This<br>";
> SLEEP(2) ;
> PRINT "Is a<br>";
> SLEEP(2);
> PRINT "TEST";
>
> But the way it works in the browser is to wait for a total of 4 seconds
> and then it displays all the text at once, not one line at a time -
> which is what I'm after.
You might try using flush() after the prints.
--
CC