Re: Output Control
| From: | Luis Moreira | Date: | Wed, 26 May 2004 15:21:10 +0000 |
| Subject: | Re: Output Control | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-23847@lists.php.net to get a copy of this message | ||
William CANDILLON wrote:
I want to execute my script in a browser as with the shell mode. Example: <? static $i = 0; while ($i < 10) { ++$i; echo "$i\n\n"; sleep(1); } ?> I've tried this but it's doesn't work : <? static $i = 0; while ($i < 10) { ++$i; echo "$i\n\n"; flush(); sleep(1); } ?> What exactly is your problem ?I tried this and it simply echoes the numbers 1 to 10 in a single line. If you want to echo them in separate lines, then you need echo "$i<br>"; Luis