How to off the out put buffering in php?

Asked By 0 points N/A Posted on -
qa-featured

I’d like to know how to off the Output Buffering in PHP.

SHARE
Best Answer by Norwood-Koonce
Best Answer
Best Answer
Answered By 0 points N/A #157435

How to off the out put buffering in php?

qa-featured

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://bd1.php.net/manual/en/outcontrol.configuration.php#ini.output-buffering

output_buffering = 4096

You should change this output buffering as “output_buffering=Off”

Then save it. Now the output_buffering is off.

Answered By 557260 points N/A #157436

How to off the out put buffering in php?

qa-featured

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.

Login/Register to Answer

Related Questions