One thing I have noticed with php, is that nothing is output to the screen until the script has stopped working. For the project I am working on I feed in a list of over 100
I use
flush(); @ob_flush();
after the output.