For example, if I have an echo statement, there\'s no guarantee that the browser might display it right away, might display a few dozen echo statements at once, and might wa
flush() is part of the answer. At least until a year ago, using flush was unreliable in Safari, however. Depending on your scenario, I'd look into solutions involving javascript. Maybe the various implementation of progress bars have code/ideas you can recycle.