RE: [PHP] Delaying Printed Output

From: Date: Sat, 24 Mar 2001 18:47:47 +0000
Subject: RE: [PHP] Delaying Printed Output
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-45436@lists.php.net to get a copy of this message
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:gscott@midway.tds.net] Sent: Saturday, March 24, 2001 1:42 PM To: KPortsmout@aol.com Cc: gscott@tds.net; php-general@lists.php.net 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: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#45436) next »