Re: Delaying Printed Output

From: Date: Sat, 24 Mar 2001 19:19:32 +0000
Subject: Re: Delaying Printed Output
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-45443@lists.php.net to get a copy of this message
Speaking off the top of my head, seems like a combination of html meta refresh and a variable that increments based on HTTP REFERRER=PHP_SELF could provide the effect you're looking for. Certainly you could meta refresh to new pages in sequence. Or of course just use an animated gif if static text. Have you looked into javascript/java? I doubt that you can do it solely within php as it parses once and delivers html. The connection betwixt the server and client is transaction and the client would have to initiate the call to update, unless the update was imbedded within and staged at the client. On Sat, 24 Mar 2001, CC Zona wrote: > Date: Sat, 24 Mar 2001 11:06:02 -0800 > From: CC Zona <cczona@nospam.invalid> > To: php-general@lists.php.net > Subject: Re: [PHP] Delaying Printed Output > > 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 > > -- > 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 > Kelly 303-444-1671 Boulder, Colorado

« previous php.general (#45443) next »