<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/outcontrol.user-level-output-buffers.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'en',
  ),
  'this' => 
  array (
    0 => 'outcontrol.operations-on-buffers.php',
    1 => 'Operations Allowed On Buffers',
    2 => 'Operations Allowed On Buffers',
  ),
  'up' => 
  array (
    0 => 'outcontrol.user-level-output-buffers.php',
    1 => 'User-Level Output Buffers',
  ),
  'prev' => 
  array (
    0 => 'outcontrol.buffer-size.php',
    1 => 'Buffer Size',
  ),
  'next' => 
  array (
    0 => 'outcontrol.output-handlers.php',
    1 => 'Output Handlers',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/outcontrol/user-level-output-buffers.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="outcontrol.operations-on-buffers" class="section">
  <h2 class="title">Operations Allowed On Buffers</h2>
  <p class="para">
   The operations allowed on buffers can be controlled
   by passing one of the
   <a href="outcontrol.constants.php#outcontrol.constants.buffer-control-flags" class="link">buffer control flags</a>
   to <span class="function"><a href="function.ob-start.php" class="function">ob_start()</a></span>&#039;s third
   <code class="parameter">flags</code> parameter.
   If omitted, all operations are allowed by default.
   If <code class="literal">0</code> is used instead,
   the buffer cannot be flushed, cleaned or removed
   but it&#039;s contents can still be retrieved.
  </p>
  <p class="para">
   <strong><code><a href="outcontrol.constants.php#constant.php-output-handler-cleanable">PHP_OUTPUT_HANDLER_CLEANABLE</a></code></strong> allows
   <span class="function"><a href="function.ob-clean.php" class="function">ob_clean()</a></span> to clean the contents of the buffer.
  </p>
  <div class="warning"><strong class="warning">Warning</strong>
   <p class="simpara">
    The absence of the <strong><code><a href="outcontrol.constants.php#constant.php-output-handler-cleanable">PHP_OUTPUT_HANDLER_CLEANABLE</a></code></strong> flag
    will not prevent <span class="function"><a href="function.ob-end-clean.php" class="function">ob_end_clean()</a></span>
    or <span class="function"><a href="function.ob-get-clean.php" class="function">ob_get_clean()</a></span> from clearing the contents of the buffer.
   </p>
  </div>
  <p class="para">
   <strong><code><a href="outcontrol.constants.php#constant.php-output-handler-flushable">PHP_OUTPUT_HANDLER_FLUSHABLE</a></code></strong> allows
   <span class="function"><a href="function.ob-flush.php" class="function">ob_flush()</a></span> to flush the contents of the buffer.
  </p>
  <div class="warning"><strong class="warning">Warning</strong>
   <p class="simpara">
    The absence of the <strong><code><a href="outcontrol.constants.php#constant.php-output-handler-flushable">PHP_OUTPUT_HANDLER_FLUSHABLE</a></code></strong> flag
    will not prevent <span class="function"><a href="function.ob-end-flush.php" class="function">ob_end_flush()</a></span>
    or <span class="function"><a href="function.ob-get-flush.php" class="function">ob_get_flush()</a></span> from flushing the contents of the buffer.
   </p>
  </div>
  <p class="para">
   <strong><code><a href="outcontrol.constants.php#constant.php-output-handler-removable">PHP_OUTPUT_HANDLER_REMOVABLE</a></code></strong> allows
   <span class="function"><a href="function.ob-end-clean.php" class="function">ob_end_clean()</a></span>, <span class="function"><a href="function.ob-end-flush.php" class="function">ob_end_flush()</a></span>,
   <span class="function"><a href="function.ob-get-clean.php" class="function">ob_get_clean()</a></span> or <span class="function"><a href="function.ob-get-flush.php" class="function">ob_get_flush()</a></span>
   to turn off the buffer.
  </p>
  <p class="para">
   <strong><code><a href="outcontrol.constants.php#constant.php-output-handler-stdflags">PHP_OUTPUT_HANDLER_STDFLAGS</a></code></strong>,
   the combination of the three flags will allow each of the three operations
   to be performed on the buffer.
  </p>
 </div><?php manual_footer($setup); ?>