<?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 => 'ja',
  ),
  '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' => 'ja',
    '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対応のfopenラッパーが使用可能となり、
      ファイルのようにURLオブジェクトをアクセスできるようになります。
      デフォルトのラッパーが、ftpまたはhttpプロトコルを用いて
      <a href="features.remote-files.php" class="link">リモートファイル</a>に
      アクセスするために提供されています。<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">
      このオプションを指定すると
      <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>
      で URL 対応の fopen ラッパーが使用できるようになります。
     </p>
     <blockquote class="note"><p><strong class="note">注意</strong>: 
      <p class="para">
       この設定を使用するには、allow_url_fopen が on
       でないといけません。
      </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">
      送信する 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 接続で使ったり、あるいは HTTP
      接続の From ヘッダで使ったりするためのメールアドレス。
      それぞれ、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">
      onにした場合、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、Machintoshの行末
      表記を使用しているかどうかを調べます。
     </p>
     <p class="para">
      これにより、PHPがMacintoshシステムと相互運用できるようになりますが、
      デフォルトはOffとなっています。これは、最初の行の行末表記を検出
      する際にごく僅かな性能劣化があるためと、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); ?>