Steps to enable or disable output_buffering directive

kumkumsharma

Administrator
Staff member
Output buffer is a location where data is where data ready and wait until the output device or display device is not ready.

Normally when a PHP script runs it sends output in multiple parts until the processing complete. But if output butter is enabled PHP sends data when script processing is complete. You can check the output buffer value in phpinfo.php.

You can enable or disable output buffer in php.ini file, you have to add below line to enable output_buffer:

Code:
output_buffering = on
If you want to set particular limit for output buffer then you can add below line in php.ini file:

Code:
output_buffering = 16384
To disable you have to use below line:

Code:
output_buffering = off
 
Top