<?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 => 'ru',
  ),
  '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' => 'ru',
    '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); ?>