

Enabling Output Buffering Control by PHP Functionsīy setting the above directives with PHP configuration files, will affect all PHP scripts. And, the last configuration directive of the above list will be set in any way, including with ini_set() function.

output_handler – It contains NULL as its default value.We need to turn it on by giving “ON” as its value that makes to enable output buffering for all PHP scripts under the root directory as a whole. output_buffering – Contains 0 by default.There are three configuration directives used for this output control. Setting PHP Output Buffering Configuration Directives Enabling output buffering by PHP functions.Setting PHP Output buffering configuration directives.PHP Output Buffering Configurationįor controlling PHP program output through buffers, we need to enable output buffering by using any one of the following two methods.

But, using PHP output buffering, these data chunks will be stored in a buffer. Normally, each chunk of data specified as PHP printing statements or as HTML content in between PHP scripts will be sent to the browser once it is ready. Controlling output will be done with respect to the time of sending output to the browser, the order of output and etc. In PHP, the output buffering feature is used to control program output.
