Top "Output-buffering" questions

Use output-buffering for questions related to the use of one or more buffers in order to optimize performance by batching write operations

What's the use of ob_start() in php?

Is ob_start() used for output buffering so that the headers are buffered and not sent to the browser? Am …

php output-buffering
What is output buffering?

What is output buffering and why is one using it in PHP?

php output-buffering
What exactly is Python's file.flush() doing?

I found this in the Python documentation for File Objects: flush() does not necessarily write the file’s data to …

python io output-buffering fsync
How to clear previously echoed items in PHP

In php, is there any way to clear/remove all previously echoed or printed items? For example: <?php echo …

php output echo output-buffering
PHP buffer ob_flush() vs. flush()

What's the difference between ob_flush() and flush() and why must I call both? The ob_flush() reference says: This …

php flush output-buffering
Get content between two strings PHP

Whats is the best way to obtain the content between two strings e.g. ob_start(); include('externalfile.html'); ## see …

php regex file-get-contents output-buffering
How to flush data to browser but continue executing

I have a ob_start() and a corresponding ob_flush(). I would like to flush a portion of data and …

php output-buffering
HTML into PHP Variable (HTML outside PHP code)

I am new to php and wondering if I can have something like this: <?php ... magicFunctionStart(); ?> <html&…

php output-buffering
Test PHP headers with PHPUnit

I'm trying to use PHPunit to test a class that outputs some custom headers. The problem is that on my …

php unit-testing phpunit output-buffering
Difference between ob_clean and ob_flush?

What's the difference between ob_clean() and ob_flush()? Also what's the difference between ob_end_clean() and ob_end_…

php output-buffering