add simple php.ini and Apache config examples

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@61228 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
jim winstead 2001-10-31 01:33:42 +00:00
parent 9ef5d1a537
commit c019e46c79

View file

@ -1,5 +1,5 @@
<?xml encoding="iso-8859-1"?>
<!-- $Revision: 1.23 $ -->
<!-- $Revision: 1.24 $ -->
<chapter id="configuration">
<title>Configuration</title>
@ -12,6 +12,27 @@
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> version, it happens on every invocation.</simpara>
<para>
<example>
<title>php.ini example</title>
<programlisting role="ini">
; any text on a line after an unquoted semicolon (;) is ignored
[php] ; section markers (text within square brackets) are also ignored
; Boolean values can be set to either:
; true, on, yes
; or false, off, no, none
register_globals = off
magic_quotes_gpc = yes
; you can enclose strings in double-quotes
include_path = ".:/usr/local/lib/php"
; backslashes are treated the same as any other character
include_path = ".;c:\php\lib"
</programlisting>
<!-- TODO: add more details about values and expressions -->
</example>
</para>
<simpara>
When using PHP as an Apache module, you can also change the
@ -77,6 +98,21 @@
</varlistentry>
</variablelist>
</para>
<para>
<example>
<title>Apache configuration example</title>
<programlisting role="ini">
&lt;IfModule mod_php4.c&gt;
php_value include_path ".:/usr/local/lib/php"
php_flag safe_mode on
&lt;/IfModule&gt;
&lt;IfModule mod_php3.c&gt;
php3_include_path ".:/usr/local/lib/php"
php3_safe_mode on
&lt;/IfModule&gt;
</programlisting>
</example>
</para>
<simpara>
You can view the settings of the configuration values in