You are here: Re: [PHP] Sending htm as it's being generated « PHP « IT news, forums, messages
Re: [PHP] Sending htm as it's being generated

Posted by Brent Baisley on 05/09/05 16:04

Bottom line is that you can't do it reliably with PHP or anything on
the server. Different browsers will display content at different times.
I think Internet Explorer will only display something after it gets a
certain amount of information (i.e. 18k) or the entire page. I don't
think any browser displays content if it is "between" tags. Like an
open table or something.

As others have mentioned, look into using the AJAX technology and
javascript to reliably update your page.

On May 8, 2005, at 4:17 PM, 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
>
>
--
Brent Baisley
Systems Architect
Landover Associates, Inc.
Search & Advisory Services for Advanced Technology Environments
p: 212.759.6400/800.759.0577

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация