View Single Post
  #1 (permalink)  
Old 12-01-2008, 11:00
Coomkeen Coomkeen is offline
Junior Member
 
Join Date: Jan 2008
Posts: 11
Default Progressive display

Now I'm baffled.

How come, when you have a slow connection say, or the server is rather busy, that some sites display part of the page, then another bit, and then more, until it's finished?

But when I try:

<html>
<head>
</head>
<body>

Test<br>
</body>
</html>

<?php
$i=1;
while($i <= 5){
echo("Wait " . $i . "<br>");
sleep(1);
$i++;
}
?>

Nothing happens until the whole page processing has finished.
And then it displays the php bit, apparently taking no notice of the </html> etc.

Any idea what's going on here?

Ron
Reply With Quote