cvs: phpdoc /en/chapters config.xml

From: Date: Wed, 31 Oct 2001 01:33:42 +0000
Subject: cvs: phpdoc /en/chapters config.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969338371@lists.php.net to get a copy of this message
jimw Tue Oct 30 20:33:42 2001 EDT Modified files: /phpdoc/en/chapters config.xml Log: add simple php.ini and Apache config examples Index: phpdoc/en/chapters/config.xml diff -u phpdoc/en/chapters/config.xml:1.23 phpdoc/en/chapters/config.xml:1.24 --- phpdoc/en/chapters/config.xml:1.23 Tue Oct 30 20:09:49 2001 +++ phpdoc/en/chapters/config.xml Tue Oct 30 20:33:42 2001 @@ -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 @@ -76,6 +97,21 @@ </listitem> </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>

« previous php.doc (#969338371) next »