Re: [PHP3] Headers/Output

From: Date: Wed, 14 Jun 2000 00:38:24 +0000
Subject: Re: [PHP3] Headers/Output
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-1790@lists.php.net to get a copy of this message
In article <001701bfcf67$62cee2d0$21566c18@chris>, chris@upnix.com ("Chris Cameron") wrote: > I have a script that takes it's sweet time finishing, and I'm looking for a > way for it to output the plain html that's there, then output the finished > code once it finishes parsing it. <HTML> <HEAD><TITLE>This page takes awhile</TITLE></HEAD> <BODY> <?php flush(); for ($i = 0; $i < 10; $i++){ echo "This is $i. Now we wait awhile.<BR>\n"; flush(); sleep(1); } ?> This works better if there is enough data in the loop to trip the various packet minimum sizes of various servers for the actual data to go through. It also does not work in some older versions of PHP. </BODY> </HTML> -- Richard Lynch | If this was worth $$$ to you, buy a CD US Customer Support Director | from one of the artists listed here: Zend Technologies USA | http://www.L-I-E.com/artists.htm http://www.zend.com | (this has nothing to do with Zend, duh!)

« previous php.general (#1790) next »