Re: Sending htm as it's being generated

From: Date: Sun, 08 May 2005 21:42:49 +0000
Subject: Re: Sending htm as it's being generated
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-214720@lists.php.net to get a copy of this message
http://au.php.net/flush Kirsten wrote: > How do I make the browser to display data as it being generated? I've > noticed some websites do this with cgi. > For example: > > <html> > <head> > <title>XXX</title> > </head> > <body> > > <% > $i = 0; > while (true){ > echo "<p>" . $i++ . "</p>"; > sleep(1); > } > %> > </body> > </html> > > This scripts does not work: It only shows 0,1,2,3....[29] when the timeout > limit is reached. > Any ideas? > > Thanks. >

« previous php.general (#214720) next »