Justtechjobs.com Find a programming school near you






Online Campus Both


php-general | 2001032

Re: [PHP] Delaying Printed Output From: Greg Scott (gscott <email protected>)
Date: 03/24/01

> 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: php-general-unsubscribe <email protected>
For additional commands, e-mail: php-general-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>