svn: /phpdoc/en/trunk/install/ ini.xml
| From: | Mike Ford | Date: | Wed, 06 Jul 2011 12:52:51 +0000 |
| Subject: | svn: /phpdoc/en/trunk/install/ ini.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-8438@lists.php.net to get a copy of this message | ||
mgf Wed, 06 Jul 2011 12:52:51 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=313008
Log:
Minor improvements to English and markup.
Changed paths:
U phpdoc/en/trunk/install/ini.xml
Modified: phpdoc/en/trunk/install/ini.xml
===================================================================
--- phpdoc/en/trunk/install/ini.xml 2011-07-06 12:44:19 UTC (rev 313007)
+++ phpdoc/en/trunk/install/ini.xml 2011-07-06 12:52:51 UTC (rev 313008)
@@ -10,28 +10,28 @@
The configuration file (&php.ini;)
is read when PHP starts up. For the server module versions of PHP,
this happens only once when the web server is started. For the
- <acronym>CGI</acronym> and <acronym>CLI</acronym> version, it happens
on
+ <acronym>CGI</acronym> and <acronym>CLI</acronym> versions, it happens
on
every invocation.
</simpara>
<para>
- &php.ini; is searched in these locations (in order):
+ &php.ini; is searched for in these locations (in order):
<itemizedlist>
<listitem>
- <para>
+ <simpara>
SAPI module specific location (<literal>PHPIniDir</literal> directive
in Apache 2, <literal>-c</literal> command line option in CGI and CLI,
<literal>php_ini</literal> parameter in NSAPI,
<literal>PHP_INI_PATH</literal> environment variable in THTTPD)
- </para>
+ </simpara>
</listitem>
<listitem>
- <para>
- The <varname>PHPRC</varname> environment variable. Before PHP 5.2.0
+ <simpara>
+ The <varname>PHPRC</varname> environment variable. Before PHP 5.2.0,
this was checked after the registry key mentioned below.
- </para>
+ </simpara>
</listitem>
<listitem>
- <para>
+ <simpara>
As of PHP 5.2.0, the location of the <literal>php.ini</literal> file
can be set for different versions of PHP. The following registry keys
are examined in order:
@@ -39,55 +39,56 @@
<literal>[HKEY_LOCAL_MACHINE\SOFTWARE\PHP\x.y]</literal> and
<literal>[HKEY_LOCAL_MACHINE\SOFTWARE\PHP\x]</literal>, where
x, y and z mean the PHP major, minor and release versions. If there is a
- value for <literal>IniFilePath</literal> in these keys, then the first
- one found will be used as the location of the <literal>php.ini</literal>
(Windows only).
- </para>
+ value for <literal>IniFilePath</literal> in any of these keys, the first
+ one found will be used as the location of the <literal>php.ini</literal>
+ (Windows only).
+ </simpara>
</listitem>
<listitem>
- <para>
+ <simpara>
<literal>[HKEY_LOCAL_MACHINE\SOFTWARE\PHP]</literal>, value of
<literal>IniFilePath</literal> (Windows only).
- </para>
+ </simpara>
</listitem>
<listitem>
- <para>
- Current working directory (except CLI)
- </para>
+ <simpara>
+ Current working directory (except CLI).
+ </simpara>
</listitem>
<listitem>
- <para>
+ <simpara>
The web server's directory (for SAPI modules), or directory of PHP
- (otherwise in Windows)
- </para>
+ (otherwise in Windows).
+ </simpara>
</listitem>
<listitem>
- <para>
+ <simpara>
Windows directory (<filename class="directory">C:\windows</filename>
or <filename class="directory">C:\winnt</filename>) (for Windows), or
- <literal>--with-config-file-path</literal> compile time option
- </para>
+ <literal>--with-config-file-path</literal> compile time option.
+ </simpara>
</listitem>
- </itemizedlist>
+ </itemizedlist>
</para>
<para>
- If <filename>php-SAPI.ini</filename> exists (where SAPI is used SAPI, so the
- filename is e.g. <filename>php-cli.ini</filename> or
- <filename>php-apache.ini</filename>), it's used instead of &php.ini;.
- SAPI name can be determined by <function>php_sapi_name</function>.
+ If <filename>php-SAPI.ini</filename> exists (where SAPI is the SAPI in use,
+ so, for example, <filename>php-cli.ini</filename> or
+ <filename>php-apache.ini</filename>), it is used instead of &php.ini;.
+ The SAPI name can be determined with <function>php_sapi_name</function>.
</para>
<note>
<para>
- The Apache web server changes the directory to root at startup causing
+ The Apache web server changes the directory to root at startup, causing
PHP to attempt to read &php.ini; from the root filesystem if it exists.
</para>
</note>
<para>
- The &php.ini; directives handled by extensions are documented respectively
- on the pages of the extensions themselves. The <link linkend="ini">list of
- the core directives</link> is available in the appendix. Probably not all
- PHP directives are documented in the manual though. For a complete list
+ The &php.ini; directives handled by extensions are documented
+ on the respective pages of the extensions themselves. A <link
linkend="ini">list of
+ the core directives</link> is available in the appendix. Not all
+ PHP directives are necessarily documented in this manual: for a complete list
of directives available in your PHP version, please read your well commented
- &php.ini; file. Alternatively, you may find the
+ &php.ini; file. Alternatively, you may find
<link xlink:href="&url.php.svn.phpini;">the latest
&php.ini;</link> from SVN
helpful too.
</para>