You are here: Dynamic Page update by the server « All PHP « IT news, forums, messages
Dynamic Page update by the server

Posted by Piet Meins on 10/10/42 11:31

Hello there,

I'm not quite new to programming at all but to php and
web-server-programming. I got a problem in which I obviously dont't see
the forest because of all those trees.

I try to build a page that is consistantly updated by the server with
new data, but in spite of getting new pages I get one page with
different sections. A simplified code looks like this:

$i = 0;
while ($i++ < 10)
{
// Output to a new page!?!
print("<html>");
print("<head>");
print("<title>Title</title>");
print("</head> \n");
print("<body> \n");
print("Test $i \n");
print("</body> \n");
print("</html> \n");
flush();
ob_flush();
sleep(2);
}

In spite of opening a new page in every walkthrough and showing Testx on
new pages, the code shows a long row of Test1 Test2 etc. on o n e page.

What can I do to solve this problem in looking for something that clears
my page and build up a new one? Most probably I'm missing something
basic but can't see what it is.

>>Is there anybody out there, to help me?<<

 

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

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