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
flush() should do it, or you can look at all the output buffering functions