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">"0"</td>
<td align="left">PHP_INI_PERDIR</td>
<td class="empty"> </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">"0"</td>
<td align="left">PHP_INI_ALL</td>
<td align="left">PHP_INI_PERDIR in PHP <= 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'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 '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).
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(); ?>