<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = 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',
    2 => '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',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'appendices/ini.sections.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<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&#039;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">
   <table class="doctable table">
    <caption><strong>Sections</strong></caption>
    
     <thead>
      <tr>
       <th>Name</th>
       <th>Changeable</th>
       <th>Changelog</th>
      </tr>

     </thead>

     <tbody class="tbody">
      <tr>
       <td><a href="ini.sections.php#ini.per-host" class="link">[HOST=]</a></td>
       <td><strong><code><a href="info.constants.php#constant.ini-system">INI_SYSTEM</a></code></strong></td>
       <td class="empty">&nbsp;</td>
      </tr>

      <tr>
       <td><a href="ini.sections.php#ini.per-path" class="link">[PATH=]</a></td>
       <td><strong><code><a href="info.constants.php#constant.ini-system">INI_SYSTEM</a></code></strong></td>
       <td class="empty">&nbsp;</td>
      </tr>

     </tbody>
    
   </table>

  </p>
  
  <p class="para">Here&#039;s a short explanation of
the configuration directives.</p>
  
  <p class="para">
   <dl>
    
     <dt id="ini.per-host">
      <code class="parameter">[HOST=&lt;host&gt;]</code>
     </dt>
     <dd>
      <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">
       <div class="example" id="example-1">
        <p><strong>Example #1 Activate full on-screen error reporting for dev. domain</strong></p>
        <div class="example-contents">
<div class="php.inicode"><pre class="php.inicode">[HOST=dev.site.com]
error_reporting = E_ALL
display_errors = On</pre>
</div>
        </div>

       </div>
      </p>
     </dd>
    
    
    
     <dt id="ini.per-path">
      <code class="parameter">[PATH=&lt;path&gt;]</code>
     </dt>
     <dd>
      <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">
       <div class="example" id="example-2">
        <p><strong>Example #2 Add security script for protected areas</strong></p>
        <div class="example-contents">
<div class="php.inicode"><pre class="php.inicode">[PATH=/home/site/public/secure]
auto_prepend_file=security.php</pre>
</div>
        </div>

       </div>
      </p>
     </dd>
    
    
   </dl>
  </p>
 </div><?php manual_footer($setup); ?>