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