<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/configuration.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'zh',
  ),
  'this' => 
  array (
    0 => 'configuration.changes.modes.php',
    1 => '配置可被设定范围',
    2 => '配置可被设定范围',
  ),
  'up' => 
  array (
    0 => 'configuration.php',
    1 => '运行时配置',
  ),
  'prev' => 
  array (
    0 => 'configuration.file.per-user.php',
    1 => '.user.ini 文件',
  ),
  'next' => 
  array (
    0 => 'configuration.changes.php',
    1 => '怎样修改配置设定',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'zh',
    'path' => 'install/ini.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="configuration.changes.modes" class="sect1">
  <h2 class="title">配置可被设定范围</h2>

  <p class="para">
   这些模式决定着一个 PHP
   的指令在何时何地，是否能够被设定。手册中的每个指令都有其所属的模式。例如有些指令可以在
   PHP 脚本中用 <span class="function"><a href="function.ini-set.php" class="function">ini_set()</a></span> 来设定，而有些则只能在
   <var class="filename">php.ini</var> 或 <var class="filename">httpd.conf</var> 中。
  </p>

  <p class="para">
   例如 
   <a href="outcontrol.configuration.php#ini.output-buffering" class="link">output_buffering</a>
   指令是属于
   <strong><code><a href="info.constants.php#constant.ini-perdir">INI_PERDIR</a></code></strong>，因而就不能用
   <span class="function"><a href="function.ini-set.php" class="function">ini_set()</a></span> 来设定。但是
   <a href="errorfunc.configuration.php#ini.display-errors" class="link">display_errors</a>
   指令是属于
   <strong><code><a href="info.constants.php#constant.ini-all">INI_ALL</a></code></strong> 因而就可以在任何地方被设定，包括
   <span class="function"><a href="function.ini-set.php" class="function">ini_set()</a></span>。
  </p>

  <p class="para">
   <dl>

    <strong class="title">INI 模式常量</strong>
    
     <dt>
      <strong><code><a href="info.constants.php#constant.ini-user">INI_USER</a></code></strong>
      (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
     </dt>
     <dd>
      <span class="simpara">
       可以在用户脚本（如使用 <span class="function"><a href="function.ini-set.php" class="function">ini_set()</a></span>）或 <a href="configuration.changes.php#configuration.changes.windows" class="link">Windows
       注册表</a>中设置条目。可以在 <var class="filename">.user.ini</var> 中设置条目
      </span>
     </dd>
    
    
     <dt>
      <strong><code><a href="info.constants.php#constant.ini-perdir">INI_PERDIR</a></code></strong>
      (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
     </dt>
     <dd>
      <span class="simpara">
       可以在 <var class="filename">php.ini</var>、<var class="filename">.htaccess</var>、<var class="filename">httpd.conf</var> 或 <var class="filename">.user.ini</var> 中设置条目
      </span>
     </dd>
    
    
     <dt>
      <strong><code><a href="info.constants.php#constant.ini-system">INI_SYSTEM</a></code></strong>
      (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
     </dt>
     <dd>
      <span class="simpara">
       可以在 <var class="filename">php.ini</var> 或 <var class="filename">httpd.conf</var> 中设置条目
      </span>
     </dd>
    
    
     <dt>
      <strong><code><a href="info.constants.php#constant.ini-all">INI_ALL</a></code></strong>
      (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
     </dt>
     <dd>
      <span class="simpara">
       条目可以设置在任何地方
      </span>
     </dd>
    
   </dl>
  </p>
 </div><?php manual_footer($setup); ?>