Headers can't be sent if anything has been output to the browser, using output buffering allows you to get around this. Your output goes to the buffer and you can send your headers even after something has been printed.
Once output has been sent to the browser, no more headers can be sent. This is sometimes a problem. So, with output-buffering, you can defer the output into a buffer until such time that you deem it OK to send to the browser.
Sorry, HaLo. I had opened this thread before you replied, but then got distracted. By the time I'd posted my reply, you'd already done so, too, though I wasn't aware.
Comment