In PHP, you can use the flush() function after each line to send buffered data to the browser:
print "<p>hello</p>";
flush();
sleep(5);
print "<p>world!</p>";
flush();
The <p></p> tags are necessary because most browsers won't render the information (even if it has been sent) until they have a completed container.
HTH
-- Rich Rijnders
-- Irvine, CA US