title: PHP Output Buffering
body: <p>What are the methods to turn on output buffering either within a PHP script or using and htaccess file?</p>
  
  <p>I use the following method in an htaccess file in the root of my application:</p>
  
  <pre><code>php_value output_buffering On
  php_value output_handler mb_output_handler
  </code></pre>
  
  <p>On one of my shared hosting accounts (linux hosting with PHP 5.2.x), the above yields a blank page. Tech support says they can't turn it on in the php.ini file but I can turn it on in my script...</p>
  
  <p><code>ob_start()</code> and <code>ob_end_flush()</code> also yields the same result. What can I do?</p>