Forum Moderators: coopster
Output buffers are stackable, that is, you may call ob_start() while another ob_start() is active. Just make sure that you call ob_end_flush() the appropriate number of times. If multiple output callback functions are active, output is being filtered sequentially through each of them in nesting order.This, frankly, fills me with terror.
especially if you need to send headers to the browser after your script has begun outputting data“No, wait, cancel that, I couldn’t find the database so we’ll need to send out a 404 instead” which can only be done if you haven’t sent out any content yet.