How To Enable Output Buffering in php.ini File Gallery Settings Code

This Page Contains information about How To Enable Output Buffering in php.ini File Gallery Settings Code By braker in category PHP with 4 Replies. Last Upated: Mon Sep 01, 2014


braker

Fri Feb 29, 2008

4 Comments

91 Visits


The other day i was trying to install the Minalto Gallery for a customer. While doing the install, ( /install/index.php?step=2 ) on step 2, there was a warning that said:


     Code:
Warning: Output buffering is enabled in your php by the output_buffering parameter(s) in php.ini. Gallery can function with this setting - downloading files is even faster - but Gallery might be unable to serve large files (e.g. large videos) and run into the memory limit. Also, some features like the progress bars might not work correctly if output buffering is enabled unless ini_set() is allowed.


When I looked into my php.ini file, the setting was set to:

output_buffering = 4096

I guess the gallery needed this to be disabled, so what i did, I set it to "Off" According to the instructions provided in the php.ini file:


     Code:
; Output buffering allows you to send header lines (including cookies) even
; after you send body content, at the price of slowing PHP's output layer a
; bit. You can enable output buffering during runtime by calling the output
; buffering functions. You can also enable output buffering for all files by
; setting this directive to On. If you wish to limit the size of the buffer
; to a certain size - you can use a maximum number of bytes instead of 'On', as
; a value for this directive (e.g., output_buffering=4096).
output_buffering = 4096


I changed it to
output_buffering = Off

then I restarted my apache server

Done

When I refreshed step two during the installation, i did get the warning, instead i got a SUCSESS

*if you have benefited from this post, we would appreciate a link back to wallpaperama.com - Why link back? by linking to wallpaperama, it will make this post more available for webmaster/people who are looking for answers to questions like this. - Thanks,
shamas
how to enable output buffering on in, php.ini if i have windows server please show me, i would appreciate it
spywarei
you can enable it by setting
output_buffering = on
or
output_buffering = 4096
in php.ini configuration file
stever
can you show me how to enable output_buffering on my php server but it has windows not linux though

http://www.webune.com/forums/php-how-to-enable-output-buffering-in-phpini-file-gallery-settings-code-t413.html

webune
; - output_buffering = 4096 [performance] ; set a 4kb output buffer. enabling output buffering typically results in less ; writes, and sometimes less packets sent on the wire, which can often lead to ; better performance. the gain this directive actually yields greatly depends ; on which web server you're working with, and what kind of scripts you're using.