How to off the out put buffering in php?
Hello,
Yes this is a big problem for the beginners of the PHP. This is easy. Follow the steps below:
- First you should go to the PHP installation folder. If you installed PHP using WAMP server then you have to go to WAMP server installation folder and there will be the PHP installation folder. If you install PHP using XAMPP then you have to go to the XAMPP server installation folder and there will be the PHP installation folder.
- Then inside the PHP folder you can see a file called php.ini
- Open it using notepad or some kind of an editable software.
- Search for this “output_buffering”
- There will be 3 places which has that phase. From the top of the file you should go to the second place.
- Then you will see a statement like this:
Default Value: Off
Development Value: 4096
Production Value: 4096
http://php.net/manual/en/function.ob-end-flush.php
output_buffering = 4096
You should change this output buffering as “output_buffering=Off”
Then save it. Now the output_buffering is off.
How to off the out put buffering in php?
It seems that you are having a hard time disabling the output buffering in PHP. You can turn off or disable the output buffering or “output_buffering” by going to the php.ini file and editing its content and then setting this value:
output_buffering = Off
Open the php.ini file using notepad then search for “output_buffering”. Replace or change the value with either On or Off. You should also remember that “output_buffering” may appear in several places. The line you need is the one that says "output_buffering = On", assuming that you want to turn off the output_buffering.
To find the php.ini file, left-click on the WAMPSERVER icon on the system tray then mouse over to PHP folder then select php.ini to edit the file.