<?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 => 'it',
  ),
  'this' => 
  array (
    0 => 'configuration.changes.modes.php',
    1 => 'Where a configuration setting may be set',
    2 => 'Where a configuration setting may be set',
  ),
  'up' => 
  array (
    0 => 'configuration.php',
    1 => 'Runtime Configuration',
  ),
  'prev' => 
  array (
    0 => 'configuration.file.per-user.php',
    1 => '.user.ini files',
  ),
  'next' => 
  array (
    0 => 'configuration.changes.php',
    1 => 'How to change configuration settings',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    '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">Where a configuration setting may be set</h2>

  <p class="para">
   These modes determine when and where a PHP directive may or may not
   be set, and each directive within the manual refers to one of these
   modes. For example, some settings may be set within a PHP script
   using <span class="function"><a href="function.ini-set.php" class="function">ini_set()</a></span>, whereas others may require
   <var class="filename">php.ini</var> or <var class="filename">httpd.conf</var>.
  </p>

  <p class="para">
   For example, the
   <a href="outcontrol.configuration.php#ini.output-buffering" class="link">output_buffering</a> setting
   is <strong><code><a href="info.constants.php#constant.ini-perdir">INI_PERDIR</a></code></strong> therefore it may not be set using
   <span class="function"><a href="function.ini-set.php" class="function">ini_set()</a></span>. However, the
   <a href="errorfunc.configuration.php#ini.display-errors" class="link">display_errors</a> directive is
   <strong><code><a href="info.constants.php#constant.ini-all">INI_ALL</a></code></strong> therefore it may be set anywhere,
   including with <span class="function"><a href="function.ini-set.php" class="function">ini_set()</a></span>.
  </p>

  <p class="para">
   <dl>

    <strong class="title">INI mode constants</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">
       Entry can be set in user scripts (like with <span class="function"><a href="function.ini-set.php" class="function">ini_set()</a></span>)
       or in the <a href="configuration.changes.php#configuration.changes.windows" class="link">Windows registry</a>.
       Entry can be set in <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">
       Entry can be set in <var class="filename">php.ini</var>, <var class="filename">.htaccess</var>, <var class="filename">httpd.conf</var> or <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">
       Entry can be set in <var class="filename">php.ini</var> or <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">
       Entry can be set anywhere
      </span>
     </dd>
    
   </dl>
  </p>
 </div><?php manual_footer($setup); ?>