<?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 => 'zh',
  ),
  'this' => 
  array (
    0 => 'ini.sections.php',
    1 => 'php.ini 配置段列表',
    2 => 'php.ini 配置段列表',
  ),
  'up' => 
  array (
    0 => 'ini.php',
    1 => 'php.ini 配置',
  ),
  'prev' => 
  array (
    0 => 'ini.list.php',
    1 => 'php.ini 配置选项列表',
  ),
  'next' => 
  array (
    0 => 'ini.core.php',
    1 => 'php.ini 核心指令说明',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'zh',
    '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"> <var class="filename">php.ini</var> 配置段列表</h2>
  <p class="para">
   这个列表包含 <var class="filename">php.ini</var> section，可以根据每个主机或路径进行设置以配置 PHP 环境。这些 section 是可选的。
  </p>
  <p class="para">
   这些 section 并不直接影响 PHP。它们用于将其他 <var class="filename">php.ini</var> 指令分组，并使其在特定主机或路径上生效。
  </p>
  <p class="para">
   这些 section 仅在 CGI/FastCGI 模式下使用，不能设置 <a href="ini.core.php#ini.extension" class="link">extension</a> 和 <a href="ini.core.php#ini.zend-extension" class="link">zend_extension</a> 指令。
  </p>
  <p class="para">
   <table class="doctable table">
    <caption><strong>配置段</strong></caption>
    
     <thead>
      <tr>
       <th>名字</th>
       <th>可修改范围</th>
       <th>更新日志</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">这是配置指令的简短说明。</p>
  
  <p class="para">
   <dl>
    
     <dt id="ini.per-host">
      <code class="parameter">[HOST=&lt;host&gt;]</code>
     </dt>
     <dd>
      <p class="para">
       该 section 允许定义一组在指定主机上生效的 <var class="filename">php.ini</var> 指令。
      </p>
      <p class="para">
       <div class="example" id="example-1">
        <p><strong>示例 #1 dev. 域名激活完整的屏幕错误报告</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">
       该 section 允许定义一组脚本从指定路径运行时生效的 <var class="filename">php.ini</var> 指令。
      </p>
      <p class="para">
       <div class="example" id="example-2">
        <p><strong>示例 #2 受保护的区域添加安全脚本</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); ?>