Okay, I'm finally stumped with PHP. I have output buffering turned on in my php.ini file because of all the sloppy code on my server that requires it (and some gzip compression). Anyway, I have a task in which I need to turn off the output buffer so it sends the output in real time. I started by trying to use ob_end_flush() or ob_flush() and the like but that doesn't override the php.ini settings (even though I tell it to flush, it doesn't). I then looked into the ini_set command but for ouput_buffering it's listed as PHP_INI_PERDIR|PHP_INI_SYSTEM so I can't do it from inside the script.
Howerver, it led me to my next possible solution. On http://www.php.net/manual/en/function.ini-set.php it states that you can set output_buffering in the httpd.conf or .htaccess file. Howerver, it doesn't give any example on how to do it. Without the syntax on how you add php commands to httpd.conf and .htaccess, I couldn't get it to work.
The only other solution I can think of is to run another copy of apache that uses a different php.ini but I'd rather not do that for several reasons.
Any thoughts on how to turn off output_buffering for a particular file or directory?
Bob