mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
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:
parent
9ef5d1a537
commit
c019e46c79
1 changed files with 37 additions and 1 deletions
|
@ -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">
|
||||
<IfModule mod_php4.c>
|
||||
php_value include_path ".:/usr/local/lib/php"
|
||||
php_flag safe_mode on
|
||||
</IfModule>
|
||||
<IfModule mod_php3.c>
|
||||
php3_include_path ".:/usr/local/lib/php"
|
||||
php3_safe_mode on
|
||||
</IfModule>
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
|
||||
<simpara>
|
||||
You can view the settings of the configuration values in
|
||||
|
|
Loading…
Reference in a new issue