If output buffering is enabled, then flushing is the only way to output anything to the browser. If you want to output immediately, then output buffering. If this is not under your control, you can simply call ob_end_flush () in the srart of your script, which will disable output buffering. However, some messages cannot be transmitted, and some cannot (without writing custom echo / print functions)
calling ob_end_flush () will disable and disable the topmost output buffer. To make sure that all output buffers are turned off and flushed, you can easily do this:
while (@ob_end_flush());
Pim jager
source share