<?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 => 'ja',
  ),
  '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' => 'ja',
    '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">
   この一覧では、ホスト単位やパス単位で PHP の設定を行いたい場合に設定する
   <var class="filename">php.ini</var> のセクションをまとめます。これらのセクションはオプションです。
  </p>
  <p class="para">
   これらのセクションは、PHP に直接影響を及ぼすわけではありません。
   さまざまな <var class="filename">php.ini</var> ディレクティブをひとまとめにして、
   それを特定のホストや特定のパスにだけ適用する場合に使用します。
  </p>
  <p class="para">
   これらのセクションは 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">
       このセクションで指定した <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">
       このセクションで指定した <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); ?>