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

124 lines
3.6 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: a0ae28d3bc85f927c22649ebd9a590b921534b7d Maintainer: takagi Status: ready -->
<!-- CREDITS: hirokawa,shimooka -->
<section xml:id="ini.sections" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>&php.ini; のセクション一覧</title>
<para>
この一覧では、ホスト単位やパス単位で PHP の設定を行いたい場合に設定する
&php.ini; のセクションをまとめます。これらのセクションはオプションです。
</para>
<para>
これらのセクションは、PHP に直接影響を及ぼすわけではありません。
さまざまな &php.ini; ディレクティブをひとまとめにして、
それを特定のホストや特定のパスにだけ適用する場合に使用します。
</para>
<para>
これらのセクションは CGI/FastCGI モードでのみ使用します。
<link linkend="ini.extension">extension</link> および <link
linkend="ini.zend-extension">zend_extension</link> ディレクティブは設定できません。
</para>
<para>
<table>
<title>セクション</title>
<tgroup cols="3">
<thead>
<row>
<entry>&Name;</entry>
<entry>&Changeable;</entry>
<entry>&Changelog;</entry>
</row>
</thead>
<tbody>
<row>
<entry><link linkend="ini.per-host">[HOST=]</link></entry>
<entry><constant>INI_SYSTEM</constant></entry>
<entry></entry>
</row>
<row>
<entry><link linkend="ini.per-path">[PATH=]</link></entry>
<entry><constant>INI_SYSTEM</constant></entry>
<entry></entry>
</row>
</tbody>
</tgroup>
</table>
</para>
&ini.descriptions.title;
<para>
<variablelist>
<varlistentry xml:id="ini.per-host">
<term>
<parameter>[HOST=&lt;host&gt;]</parameter>
</term>
<listitem>
<para>
このセクションで指定した &php.ini; ディレクティブは、
指定した名前のホスト上でのみ有効となります。
</para>
<para>
<example>
<title>dev. ドメインではエラーを画面に表示させるようにする例</title>
<programlisting role="php.ini">
<![CDATA[
[HOST=dev.site.com]
error_reporting = E_ALL
display_errors = On
]]>
</programlisting>
</example>
</para>
</listitem>
</varlistentry>
<varlistentry xml:id="ini.per-path">
<term>
<parameter>[PATH=&lt;path&gt;]</parameter>
</term>
<listitem>
<para>
このセクションで指定した &php.ini; ディレクティブは、
指定したパスで実行したスクリプトでのみ有効となります。
</para>
<para>
<example>
<title>保護エリア内でのスクリプトのセキュリティ確保</title>
<programlisting role="php.ini">
<![CDATA[
[PATH=/home/site/public/secure]
auto_prepend_file=security.php
]]>
</programlisting>
</example>
</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
-->