Re: Sending htm as it's being generated

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux