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/ini.sections.php
<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ini.inc";
$setup = array (
'home' =>
array (
0 => 'index.php',
1 => 'PHP Manual',
),
'head' =>
array (
0 => 'UTF-8',
1 => 'en',
),
'this' =>
array (
0 => 'ini.sections.php',
1 => 'List of php.ini sections',
),
'up' =>
array (
0 => 'ini.php',
1 => 'php.ini directives',
),
'prev' =>
array (
0 => 'ini.list.php',
1 => 'List of php.ini directives',
),
'next' =>
array (
0 => 'ini.core.php',
1 => 'Description of core php.ini directives',
),
);
$setup["toc"] = $TOC;
$setup["parents"] = $PARENTS;
manual_setup($setup);
manual_header();
?>
<div id="ini.sections" class="section">
<h2 class="title">List of <var class="filename">php.ini</var> sections</h2>
<p class="para">
This list includes the <var class="filename">php.ini</var> sections you can set to configure your
PHP setup on a per Host or Path basis. These sections are optional.
</p>
<p class="para">
These sections don't directly affect PHP. They are used to group other
<var class="filename">php.ini</var> directives together and to get them to act upon a particular host
or on a particular path.
</p>
<p class="para">
These sections are used only in CGI/FastCGI mode and they can not set
<a href="ini.core.php#ini.extension" class="link">extension</a> and <a href="ini.core.php#ini.zend-extension" class="link">zend_extension</a> directives.
</p>
<p class="para">
</p><table class="doctable table">
<caption><b>Sections</b></caption>
<thead valign="middle">
<tr valign="middle">
<th>Name</th>
<th>Changeable</th>
<th>Changelog</th>
</tr>
</thead>
<tbody valign="middle" class="tbody">
<tr valign="middle">
<td align="left"><a href="ini.sections.php#ini.per-host" class="link">[HOST=]</a></td>
<td align="left">PHP_INI_SYSTEM</td>
<td align="left">Added in PHP 5.3.0.</td>
</tr>
<tr valign="middle">
<td align="left"><a href="ini.sections.php#ini.per-path" class="link">[PATH=]</a></td>
<td align="left">PHP_INI_SYSTEM</td>
<td align="left">Added in PHP 5.3.0.</td>
</tr>
</tbody>
</table>
<p>
</p>
<p class="para">Here's a short explanation of
the configuration directives.</p>
<p class="para">
</p><dl>
<dt id="ini.per-host" class="varlistentry">
<span class="term">
<i><tt class="parameter">[HOST=<host>]</tt></i>
</span>
</dt><dd class="listitem">
<p class="para">
This section allows you to define a set of <var class="filename">php.ini</var> directives that
will take effect on the named host.
</p>
<p class="para">
</p><div class="example">
<p><b>Example #1 Activate full on-screen error reporting for dev. domain</b></p>
<div class="example-contents programlisting">
<div class="php.inicode"><pre class="php.inicode">[HOST=dev.site.com]
error_reporting = E_ALL
display_errors = On</pre>
</div>
</div>
</div><p>
</p>
</dd>
<dt id="ini.per-path" class="varlistentry">
<span class="term">
<i><tt class="parameter">[PATH=<path>]</tt></i>
</span>
</dt><dd class="listitem">
<p class="para">
This section allows you to define a set of <var class="filename">php.ini</var> directives that
will take effect when a script runs from the named path.
</p>
<p class="para">
</p><div class="example">
<p><b>Example #2 Add security script for protected areas</b></p>
<div class="example-contents programlisting">
<div class="php.inicode"><pre class="php.inicode">[PATH=/home/site/public/secure]
auto_prepend_file=security.php</pre>
</div>
</div>
</div><p>
</p>
</dd>
</dl>
<p>
</p>
</div><?php manual_footer(); ?>