diff --git a/chapters/config.xml b/chapters/config.xml index e2d654f8fb..75fda35508 100644 --- a/chapters/config.xml +++ b/chapters/config.xml @@ -1,5 +1,5 @@ - + Configuration @@ -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 CGI version, it happens on every invocation. + + + php.ini example + +; 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" + + + + When using PHP as an Apache module, you can also change the @@ -77,6 +98,21 @@ + + + Apache configuration example + +<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> + + + You can view the settings of the configuration values in