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

Posted by Kirsten on 10/01/42 11:15

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.

 

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

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