I may be wrong about this, but I'm pretty sure that, being server side, PHP
sends the HTML to the browser all at once...also, the browser needs a static
HTML page to load up...it can't take a line and output as it goes...maybe
i'm wrong, but i thought that was basically how it works, so you couldn't do
the sleep thing you wanted...
anyone else?

jack

-----Original Message-----
From: Greg Scott [mailto:[EMAIL PROTECTED]]
Sent: Saturday, March 24, 2001 1:42 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: [PHP] Delaying Printed Output


> You can use the following commands:
>
> 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.

Greg


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to