Will this pass a live stream of data back to the php script?

I want to be able to display what is happening when i execute a large script rather than the php hanging and then displaying all the data in one lump.