1
0
mirror of https://github.com/php/doc-ja.git synced 2026-03-26 16:12:17 +01:00
Files
archived-doc-ja/reference/filesystem/ini.xml
Gina Peter Banyard 3949505003 Apply revchecked skipped commit c60943fefc4ff8950460e76d714a463437cf0eb2
Replace PHP_INI_* with INI_* constants
2024-01-26 13:55:31 +00:00

207 lines
6.3 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 36d8d80891c1dfc49dacecccc7d43b7fe6a6bb89 Maintainer: takagi Status: ready -->
<!-- CREDITS: hirokawa,shimooka,mumumu -->
<section xml:id="filesystem.configuration" xmlns="http://docbook.org/ns/docbook">
&reftitle.runtime;
&extension.runtime;
<para>
<table>
<title>ファイルシステムおよびストリーム設定オプション</title>
<tgroup cols="4">
<thead>
<row>
<entry>&Name;</entry>
<entry>&Default;</entry>
<entry>&Changeable;</entry>
<entry>&Changelog;</entry>
</row>
</thead>
<tbody>
<row>
<entry><link linkend="ini.allow-url-fopen">allow_url_fopen</link></entry>
<entry>"1"</entry>
<entry><constant>INI_SYSTEM</constant></entry>
<entry></entry>
</row>
<row>
<entry><link linkend="ini.allow-url-include">allow_url_include</link></entry>
<entry>"0"</entry>
<entry><constant>INI_SYSTEM</constant></entry>
<entry>PHP 7.4.0 以降は非推奨になりました。</entry>
</row>
<row>
<entry><link linkend="ini.user-agent">user_agent</link></entry>
<entry>NULL</entry>
<entry><constant>INI_ALL</constant></entry>
<entry></entry>
</row>
<row>
<entry><link linkend="ini.default-socket-timeout">default_socket_timeout</link></entry>
<entry>"60"</entry>
<entry><constant>INI_ALL</constant></entry>
<entry></entry>
</row>
<row>
<entry><link linkend="ini.from">from</link></entry>
<entry>""</entry>
<entry><constant>INI_ALL</constant></entry>
<entry></entry>
</row>
<row>
<entry><link linkend="ini.auto-detect-line-endings">auto_detect_line_endings</link></entry>
<entry>"0"</entry>
<entry><constant>INI_ALL</constant></entry>
<entry>PHP 8.1.0 以降は非推奨になりました。</entry>
</row>
<row>
<entry><link linkend="ini.sys-temp-dir">sys_temp_dir</link></entry>
<entry>""</entry>
<entry><constant>INI_SYSTEM</constant></entry>
<entry></entry>
</row>
</tbody>
</tgroup>
</table>
</para>
&ini.descriptions.title;
<para>
<variablelist>
<varlistentry xml:id="ini.allow-url-fopen">
<term>
<parameter>allow_url_fopen</parameter>
<type>bool</type>
</term>
<listitem>
<para>
このオプションにより、URL対応のfopenラッパーが使用可能となり、
ファイルのようにURLオブジェクトをアクセスできるようになります。
デフォルトのラッパーが、ftpまたはhttpプロトコルを用いて
<link linkend="features.remote-files">リモートファイル</link>
アクセスするために提供されています。<link
linkend="ref.zlib">zlib</link>のようないくつかの拡張モジュールが
ラッパーを追加することがあります。
</para>
</listitem>
</varlistentry>
<varlistentry xml:id="ini.allow-url-include">
<term>
<parameter>allow_url_include</parameter>
<type>bool</type>
</term>
<listitem>
<para>
このオプションを指定すると
<function>include</function>, <function>include_once</function>,
<function>require</function>, <function>require_once</function>
で URL 対応の fopen ラッパーが使用できるようになります。
</para>
<note>
<para>
この設定を使用するには、allow_url_fopen が on
でないといけません。
</para>
</note>
</listitem>
</varlistentry>
<varlistentry xml:id="ini.user-agent">
<term>
<parameter>user_agent</parameter>
<type>string</type>
</term>
<listitem>
<para>
送信する PHP 用のユーザーエージェントを定義します。
</para>
</listitem>
</varlistentry>
<varlistentry xml:id="ini.default-socket-timeout">
<term>
<parameter>default_socket_timeout</parameter>
<type>int</type>
</term>
<listitem>
<para>
ソケットベースのストリームのデフォルトの有効時間(単位は秒)を定義します。
負の値を指定した場合、タイムアウトしません。
</para>
</listitem>
</varlistentry>
<varlistentry xml:id="ini.from">
<term>
<parameter>from</parameter>
<type>string</type>
</term>
<listitem>
<para>
認証なしの FTP 接続で使ったり、あるいは HTTP
接続の From ヘッダで使ったりするためのメールアドレス。
それぞれ、ftp ラッパーおよび http ラッパーに対応します。
</para>
</listitem>
</varlistentry>
<varlistentry xml:id="ini.auto-detect-line-endings">
<term>
<parameter>auto_detect_line_endings</parameter>
<type>bool</type>
</term>
<listitem>
<para>
onにした場合、PHPは
<function>fgets</function> および <function>file</function>
により読み込まれたデータを評価し、UNIX、MS-DOS、Machintoshの行末
表記を使用しているかどうかを調べます。
</para>
<para>
これにより、PHPがMacintoshシステムと相互運用できるようになりますが、
デフォルトはOffとなっています。これは、最初の行の行末表記を検出
する際にごく僅かな性能劣化があるためと、UNIXシステムのもとで復改
文字を項目セパレータとして使用している人が従来のバージョンと互換
性がない動作であると感じる可能性があるためです。
</para>
</listitem>
</varlistentry>
<varlistentry xml:id="ini.sys-temp-dir">
<term>
<parameter>sys_temp_dir</parameter>
<type>string</type>
</term>
<listitem>
<para>
</para>
</listitem>
</varlistentry>
</variablelist>
</para>
</section>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->