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

In addition to disabling output buffering ($|++;), you may find that some browsers don't display the page until the script has completed. In addition, you may find that some browsers do display the partial page as it is generated but a timeout occurs before the script has completed. In these cases, a solution based on this article by merlyn may be helpful.

Replies are listed 'Best First'.
Re^2: Why is this script not giving real-time output to browser?
by Grygonos (Chaplain) on Feb 10, 2005 at 18:40 UTC

    I would reccomend explicitly setting $| rather than using an increment operator on it