Wrong-o Diego!
you can do just this with the magickal powers of Output Buffering.
Here's a short how to with using IMPLICIT_FLUSHING:
<?
//start up the ob...
ob_implicit_flush();
/ You may need to send a "buffer-buster" to force output... uncomment if needed.
for ($i=0;$i<300;$i++) {
$str .= " ";
}
/
//write an html header...
$str .= "\n\t<HEAD>\n\t\t<title>BUFFER TEST</title>\n\t</head>\n<body>\n";
//and send your string...
echo $str;
//now start your looping for output...
for ($i=0;$i<80;$i++) {
//we snooze for a nice effect here...
sleep(1);
//and output...
echo "paahrtay!<br>\n";
}
//and wrap it up...
echo "<body>\n";
ob_end_flush();
?>
And there you have it, you can output lines all night long.