mirror of
https://github.com/php/doc-zh.git
synced 2026-03-23 22:52:08 +01:00
117 lines
3.1 KiB
XML
117 lines
3.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
||
<!-- $Revision$ -->
|
||
<!-- EN-Revision: d4d5216e7a965ca194f6b1c9dee84cecab2674e5 Maintainer: HonestQiao Status: ready -->
|
||
<!-- CREDITS: mowangjuanzi -->
|
||
<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.ini; section,可以根据每个主机或路径进行设置以配置 PHP 环境。这些 section 是可选的。
|
||
</para>
|
||
<para>
|
||
这些 section 并不直接影响 PHP。它们用于将其他 &php.ini; 指令分组,并使其在特定主机或路径上生效。
|
||
</para>
|
||
<para>
|
||
这些 section 仅在 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=<host>]</parameter>
|
||
</term>
|
||
<listitem>
|
||
<para>
|
||
该 section 允许定义一组在指定主机上生效的 &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=<path>]</parameter>
|
||
</term>
|
||
<listitem>
|
||
<para>
|
||
该 section 允许定义一组脚本从指定路径运行时生效的 &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
|
||
-->
|