in reply to Why is this script not giving real-time output to browser?

Buffering.

First of all, your program is buffering its output to the server. You can disable this by setting $| to a true value. But even if you have turned off buffering of your program - your server might buffer. Or a proxy somewhere.

  • Comment on Re: Why is this script not giving real-time output to browser?