<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/yaconf.setup.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'uk',
  ),
  'this' => 
  array (
    0 => 'yaconf.configuration.php',
    1 => 'Налаштування під час виконання',
    2 => 'Налаштування під час виконання',
  ),
  'up' => 
  array (
    0 => 'yaconf.setup.php',
    1 => 'Встановлення/налаштування',
  ),
  'prev' => 
  array (
    0 => 'yaconf.installation.php',
    1 => 'Встановлення',
  ),
  'next' => 
  array (
    0 => 'yaconf.resources.php',
    1 => 'Типи ресурсів',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/yaconf/ini.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="yaconf.configuration" class="section">
 <h2 class="title">Налаштування під час виконання</h2>
 <p class="simpara">
На поведінку цих функцій випливають налаштування в <var class="filename">php.ini</var>.
</p>
 <p class="para">
  <table class="doctable table">
   <caption><strong>Yaconf Параметри конфігурації</strong></caption>
   
    <thead>
     <tr>
      <th>Назва</th>
      <th>Початково</th>
      <th>Де можна змінювати</th>
      <th>Журнал змін</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
      <td><a href="yaconf.configuration.php#ini.yaconf.directory" class="link">yaconf.directory</a></td>
      <td><code class="literal">&quot;&quot;</code></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="yaconf.configuration.php#ini.yaconf.check-delay" class="link">yaconf.check_delay</a></td>
      <td><code class="literal">300</code></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.yaconf.directory">
      <code class="parameter">yaconf.directory</code>
      <span class="type"><a href="language.types.string.php" class="type string">string</a></span>
     </dt>
     <dd>
      <p class="simpara">
       The directory where all INI configuration files are placed. Only
       files with the <var class="filename">.ini</var> extension are loaded.
       Sub-directories are loaded recursively (up to 16 levels deep);
       each one acts as a key level, so a file
       <var class="filename">database.ini</var> placed in the
       <var class="filename">users/</var> sub-directory is addressed as
       <code class="literal">&quot;users.database&quot;</code>. Available since Yaconf
       1.2.0; before that only files directly in the directory were
       loaded.
      </p>
      <p class="simpara">
       The examples below assume the following
       <var class="filename">database.ini</var> placed in the configured
       directory, alongside a <var class="filename">features.ini</var> that
       carries per-feature settings.
      </p>
      <div class="example" id="example-1">
       <p><strong>Приклад #1 INI file syntax</strong></p>
       <div class="example-contents">
<div class="inicode"><pre class="inicode">; database.ini
name=production                        ; scalar value
version=PHP_VERSION                    ; PHP constants are resolved
connection_string=${DATABASE_URL}      ; environment variables are resolved
options.max_connections=50             ; nested hash key
options.timeout=30

; array entries, both notations are equivalent
replicas.0=replica-1.example.com
replicas[]=replica-2.example.com</pre>
</div>
       </div>

      </div>
      <div class="example" id="example-2">
       <p><strong>Приклад #2 INI sections example</strong></p>
       <div class="example-contents">
<div class="inicode"><pre class="inicode">; features.ini
[default]
cache_enabled=on
rate_limit=100

; the &quot;premium&quot; section inherits every key from &quot;default&quot; and
; overrides the ones it redefines
[premium:default]
rate_limit=1000</pre>
</div>
       </div>

      </div>
     </dd>
   
   
     <dt id="ini.yaconf.check-delay">
      <code class="parameter">yaconf.check_delay</code>
      <span class="type"><a href="language.types.integer.php" class="type int">int</a></span>
     </dt>
     <dd>
      <p class="simpara">
       The interval, in seconds, at which Yaconf checks whether any
       loaded INI file has changed and reloads the changed ones (the
       change is detected by comparing directory modification times).
       Setting it to <code class="literal">0</code> makes Yaconf check on every
       request.
      </p>
      <blockquote class="note"><p><strong class="note">Зауваження</strong>: 
       <p class="simpara">
        This directive is only registered in non-ZTS builds. On ZTS
        (thread-safe) builds configurations are loaded at startup and
        automatic reloading is not available; restart PHP to pick up
        changes.
       </p>
      </p></blockquote>
     </dd>
   
  </dl>
 </p>
</div><?php manual_footer($setup); ?>