try flush() (I think this is what ozzythaman was getting at), like:
<?PHP
echo "ABCD"; //print "ABCD"
flush(); //clear the buffer
sleep(3); //sleep 3, and...
echo "EFGH"; //print "EFGH"
?>
What's happening is that it's "echo-ing" to the buffer, waiting 3 seconds, adding to the buffer, and then printing the buffer. flush() is supposed to make PHP flush the buffer, in this case, before it waits 3 seconds.
As ozzythaman said, it doesn't work on some servers (including mine sniff ).