Jump to content

php.ini output buffering


dingus

Recommended Posts

i im haveing an issue with php output buffering i need to turn it off for a script to run and have done so in php.ini how ever when i do phpinfo() i get

output_buffering 4098 no value

 

the first being the local value the second being the master value and my script is still erroring

 

and anyone help me work out how to turn this off?

 

Link to comment
https://forums.phpfreaks.com/topic/114273-phpini-output-buffering/
Share on other sites

i think output buffering is the problem given the error

 

Fatal error: Uncaught exception 'Exception' with message 'Error: output buffering is turned on in your php.ini file. In order to use Xaja, you must turn the 'output_buffering' setting to 'off'.' in /var/www/web1/web/www.theatticnetwork.net/test/xaja/controller/XajaController.php:351 Stack trace: #0 /var/www/web1/web/www.theatticnetwork.net/test/test.php(6): XajaController->init() #1 {main} thrown in /var/www/web1/web/www.theatticnetwork.net/test/xaja/controller/XajaController.php on line 351

 

the error is just that output buffering is turned on

The output buffering setting cannot be set with an ini_set() statement (please read the manual.)

 

If you have output buffering off in the master php.ini (which is what the phpinfo() output indicates) but it is on in the local setting, then it is being turned on in either in a .htaccess file (when php is running as an Apache module), your httpd.conf file (which is unlikely), or in a local php.ini file (when php is running as a CGI wrapper.) You would need to find in which of these it is being set.

 

From the php manual -

 

output_buffering changeable: PHP_INI_PERDIR

 

PHP_INI_PERDIR: Entry can be set in php.ini, .htaccess or httpd.conf

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.