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

contributors($setup);

?>
<div id="filesystem.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>Директивы конфигурации файловой системы и потоков</strong></caption>
   
    <thead>
     <tr>
      <th>Имя</th>
      <th>По умолчанию</th>
      <th>Место изменения</th>
      <th>Список изменений</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
      <td><a href="filesystem.configuration.php#ini.allow-url-fopen" class="link">allow_url_fopen</a></td>
      <td>&quot;1&quot;</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="filesystem.configuration.php#ini.allow-url-include" class="link">allow_url_include</a></td>
      <td>&quot;0&quot;</td>
      <td><strong><code><a href="info.constants.php#constant.ini-system">INI_SYSTEM</a></code></strong></td>
      <td>Устарела с PHP 7.4.0.</td>
     </tr>

     <tr>
      <td><a href="filesystem.configuration.php#ini.user-agent" class="link">user_agent</a></td>
      <td>NULL</td>
      <td><strong><code><a href="info.constants.php#constant.ini-all">INI_ALL</a></code></strong></td>
      <td class="empty">&nbsp;</td>
     </tr>

     <tr>
      <td><a href="filesystem.configuration.php#ini.default-socket-timeout" class="link">default_socket_timeout</a></td>
      <td>&quot;60&quot;</td>
      <td><strong><code><a href="info.constants.php#constant.ini-all">INI_ALL</a></code></strong></td>
      <td class="empty">&nbsp;</td>
     </tr>

     <tr>
      <td><a href="filesystem.configuration.php#ini.from" class="link">from</a></td>
      <td>&quot;&quot;</td>
      <td><strong><code><a href="info.constants.php#constant.ini-all">INI_ALL</a></code></strong></td>
      <td class="empty">&nbsp;</td>
     </tr>

     <tr>
      <td><a href="filesystem.configuration.php#ini.auto-detect-line-endings" class="link">auto_detect_line_endings</a></td>
      <td>&quot;0&quot;</td>
      <td><strong><code><a href="info.constants.php#constant.ini-all">INI_ALL</a></code></strong></td>
      <td>Устарела PHP 8.1.0.</td>
     </tr>

     <tr>
      <td><a href="filesystem.configuration.php#ini.sys-temp-dir" class="link">sys_temp_dir</a></td>
      <td>&quot;&quot;</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.allow-url-fopen">
     <code class="parameter">allow_url_fopen</code>
     <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span>
    </dt>
    <dd>
     <p class="para">
      Директива включает поддержку обёрток — обработчиков протоколов, которые умеют
      взаимодействовать с потоками по URL-адресу: открывают доступ к URL-объектам как к файлам.
      Обёртки по умолчанию предусматривают доступ
      <a href="features.remote-files.php" class="link">к удалённым файлам</a>
      по FTP- или HTTP-протоколу. Отдельные модули,
      например <a href="ref.zlib.php" class="link">zlib</a>, умеют регистрировать
      дополнительные обёртки.
     </p>
    </dd>
   

   
    <dt id="ini.allow-url-include">
     <code class="parameter">allow_url_include</code>
     <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span>
    </dt>
    <dd>
     <p class="para">
      Директива разрешает использовать URL-совместимые обёртки, которые открывают
      функцией fopen, с выражениями: <span class="function"><a href="function.include.php" class="function">include</a></span>, <span class="function"><a href="function.include-once.php" class="function">include_once</a></span>,
      <span class="function"><a href="function.require.php" class="function">require</a></span>, <span class="function"><a href="function.require-once.php" class="function">require_once</a></span>.
     </p>
     <blockquote class="note"><p><strong class="note">Замечание</strong>: 
      <p class="para">
       Опция будет работать, только если включили директиву allow_url_fopen.
      </p>
     </p></blockquote>
    </dd>
   

   
    <dt id="ini.user-agent">
     <code class="parameter">user_agent</code>
     <span class="type"><a href="language.types.string.php" class="type string">string</a></span>
    </dt>
    <dd>
     <p class="para">
      Опция определяет, какое значение в заголовке «User-Agent» будет отправлять PHP.
     </p>
    </dd>
   

   
    <dt id="ini.default-socket-timeout">
     <code class="parameter">default_socket_timeout</code>
     <span class="type"><a href="language.types.integer.php" class="type int">int</a></span>
    </dt>
    <dd>
     <p class="para">
      Значение времени ожидания по умолчанию в секундах для потоков на основе сокетов.
      Отрицательное значение означает бесконечное время ожидания.
     </p>
    </dd>
   

   
    <dt id="ini.from">
     <code class="parameter">from</code>
     <span class="type"><a href="language.types.string.php" class="type string">string</a></span>
    </dt>
    <dd>
     <p class="para">
      Адрес электронной почты, который будет использоваться при FTP-соединениях без аутентификации,
      а также как значение заголовка «From» для HTTP-соединений
      через FTP- и HTTP-обёртки, соответственно.
     </p>
    </dd>
   

   
    <dt id="ini.auto-detect-line-endings">
     <code class="parameter">auto_detect_line_endings</code>
     <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span>
    </dt>
    <dd>
     <p class="para">
      При включении директивы PHP будет проверять данные,
      которые считали функции <span class="function"><a href="function.fgets.php" class="function">fgets()</a></span> и <span class="function"><a href="function.file.php" class="function">file()</a></span>,
      чтобы определить, каким соглашениям о конце строк следуют функции — Unix, MS-Dos или Macintosh.
     </p>
     <p class="para">
      Директива разрешает PHP взаимодействовать с системами
      Macintosh, но по умолчанию для директивы установлено значение «Off»,
      поскольку когда PHP обнаруживает условное обозначение символов конца первой строки,
      незначительно снижается производительность,
      а ещё потому, что программисты, которые в Unix-системах пользуются символом возврата
      каретки как разделителем элементов, столкнутся с обратно-несовместимым поведением.
     </p>
    </dd>
   

   
    <dt id="ini.sys-temp-dir">
     <code class="parameter">sys_temp_dir</code>
     <span class="type"><a href="language.types.string.php" class="type string">string</a></span>
       </dt>
       <dd>
        <p class="para">
        </p>
       </dd>
   

  </dl>
 </p>
</div><?php manual_footer($setup); ?>