downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

Our source is open

The syntax highlighted source is automatically generated by PHP from the plaintext script. If you're interested in what's behind the several functions we used, you can always take a look at the source of the following files:

Of course, if you want to see the source of this page, we have it available. You can also browse the SVN repository for this website on svn.php.net.

Source of: /manual/en/outcontrol.configuration.php

<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$PARENTS = array();
include_once
dirname(__FILE__) ."/toc/outcontrol.setup.inc";
$setup = array (
 
'home' =>
  array (
   
0 => 'index.php',
   
1 => 'PHP Manual',
  ),
 
'head' =>
  array (
   
0 => 'UTF-8',
   
1 => 'en',
  ),
 
'this' =>
  array (
   
0 => 'outcontrol.configuration.php',
   
1 => 'Runtime Configuration',
  ),
 
'up' =>
  array (
   
0 => 'outcontrol.setup.php',
   
1 => 'Installing/Configuring',
  ),
 
'prev' =>
  array (
   
0 => 'outcontrol.installation.php',
   
1 => 'Installation',
  ),
 
'next' =>
  array (
   
0 => 'outcontrol.resources.php',
   
1 => 'Resource Types',
  ),
);
$setup["toc"] = $TOC;
$setup["parents"] = $PARENTS;
manual_setup($setup);

manual_header();
?>
<div id="outcontrol.configuration" class="section">
 <h2 class="title">Runtime Configuration</h2>
 <p class="simpara">
The behaviour of these functions is affected by settings in <var class="filename">php.ini</var>.
</p>
 <p class="para">
  </p><table class="doctable table">
   <caption><b>Output Control configuration options</b></caption>
  
    <thead valign="middle">
     <tr valign="middle">
      <th>Name</th>
      <th>Default</th>
      <th>Changeable</th>
      <th>Changelog</th>
     </tr>

    </thead>

    <tbody valign="middle" class="tbody">
    <tr valign="middle">
     <td align="left"><a href="outcontrol.configuration.php#ini.output-buffering" class="link">output_buffering</a></td>
     <td align="left">&quot;0&quot;</td>
     <td align="left">PHP_INI_PERDIR</td>
     <td class="empty">&nbsp;</td>
    </tr>

    <tr valign="middle">
     <td align="left"><a href="outcontrol.configuration.php#ini.output-handler" class="link">output_handler</a></td>
     <td align="left">NULL</td>
     <td align="left">PHP_INI_PERDIR</td>
     <td align="left">Available since PHP 4.0.4.</td>
    </tr>

    <tr valign="middle">
     <td align="left"><a href="outcontrol.configuration.php#ini.implicit-flush" class="link">implicit_flush</a></td>
     <td align="left">&quot;0&quot;</td>
     <td align="left">PHP_INI_ALL</td>
     <td align="left">PHP_INI_PERDIR in PHP &lt;= 4.2.3.</td>
    </tr>

    </tbody>
  
  </table>
<p>
   For further details and definitions of the
PHP_INI_* modes, see the <a href="configuration.changes.modes.php" class="xref">Where a configuration setting may be set</a>.
 </p>
 
 <p class="para">Here&#039;s a short explanation of
the configuration directives.</p>
 
 <p class="para">
 </p><dl>

  <dt id="ini.output-buffering" class="varlistentry">
   <span class="term">
    <i><tt class="parameter">output_buffering</tt></i>

    <a href="language.types.boolean.php" class="type boolean">boolean</a>/<a href="language.types.integer.php" class="type integer">integer</a>
   </span>

   </dt><dd class="listitem">

    <p class="para">
     You can enable output buffering for all files by setting this directive
     to &#039;On&#039;. If you wish to limit the size of the buffer to a certain size -
     you can use a maximum number of bytes instead of &#039;On&#039;, as a value for
     this directive (e.g., output_buffering=4096).
     As of PHP 4.3.5, this directive is always Off in PHP-CLI.
    </p>
   </dd>

 

  <dt id="ini.output-handler" class="varlistentry">
   <span class="term">
    <i><tt class="parameter">output_handler</tt></i>

    <a href="language.types.string.php" class="type string">string</a>
   </span>

   </dt><dd class="listitem">

    <p class="para">
     You can redirect all of the output of your scripts to a function. For
     example, if you set output_handler to
     <a href="function.mb-output-handler.php" class="function">mb_output_handler()</a>, character encoding will be
     transparently converted to the specified encoding. Setting any output
     handler automatically turns on output buffering.
    </p>
    <blockquote><p><b class="note">Note</b>:
    
      You cannot use both <a href="function.mb-output-handler.php" class="function">mb_output_handler()</a> with
      <a href="function.ob-iconv-handler.php" class="function">ob_iconv_handler()</a> and you cannot use both
      <a href="function.ob-gzhandler.php" class="function">ob_gzhandler()</a> and
      <a href="zlib.configuration.php#ini.zlib.output-compression" class="link">zlib.output_compression</a>.
     <br />
    </p></blockquote>
    <blockquote><p><b class="note">Note</b>:
    
      Only built-in functions can be used with this directive. For user
      defined functions, use <a href="function.ob-start.php" class="function">ob_start()</a>.
     <br />
    </p></blockquote>
   </dd>

 

  <dt id="ini.implicit-flush" class="varlistentry">
   <span class="term">
    <i><tt class="parameter">implicit_flush</tt></i>

    <a href="language.types.boolean.php" class="type boolean">boolean</a>
   </span>

   </dt><dd class="listitem">

    <p class="para">
     <b><tt class="constant">FALSE</tt></b> by default. Changing this to <b><tt class="constant">TRUE</tt></b> tells PHP to tell the
     output layer to flush itself automatically after every output block.
     This is equivalent to calling the PHP function
     <a href="function.flush.php" class="function">flush()</a> after each and every call to
     <a href="function.print.php" class="function">print()</a> or <a href="function.echo.php" class="function">echo()</a> and each and
     every <i>HTML</i> block.
    </p>
    <p class="para">
     When using PHP within an web environment, turning
     this option on has serious performance implications and is generally
     recommended for debugging purposes only. This value defaults to
     <b><tt class="constant">TRUE</tt></b> when operating under the <i>CLI SAPI</i>.
    </p>
    <p class="para">
     See also <a href="function.ob-implicit-flush.php" class="function">ob_implicit_flush()</a>.
    </p>
   </dd>

 
 </dl>
<p>
 </p>
</div><?php manual_footer(); ?>
 
show source | credits | sitemap | contact | advertising | mirror sites