Sophie

Sophie

distrib > Mandriva > 9.1 > ppc > media > main > by-pkgid > 0afeee9cca140e167a996902b9a677c5 > files > 18

php-manual-en-4.3.0-2mdk.noarch.rpm

<HTML
><HEAD
><TITLE
>Configuration</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
REL="HOME"
TITLE="PHP Manual"
HREF="index.html"><LINK
REL="UP"
TITLE="Getting Started"
HREF="getting-started.html"><LINK
REL="PREVIOUS"
TITLE="Complete list of configure options"
HREF="install.configure.html"><LINK
REL="NEXT"
TITLE="How to change configuration settings"
HREF="configuration.changes.html"><META
HTTP-EQUIV="Content-type"
CONTENT="text/html; charset=ISO-8859-1"></HEAD
><BODY
CLASS="chapter"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>PHP Manual</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="install.configure.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="configuration.changes.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="chapter"
><H1
><A
NAME="configuration"
>Chapter 4. Configuration</A
></H1
><DIV
CLASS="TOC"
><DL
><DT
><B
>Table of Contents</B
></DT
><DT
><A
HREF="configuration.html#configuration.file"
>The configuration file</A
></DT
><DT
><A
HREF="configuration.changes.html"
>How to change configuration settings</A
></DT
><DT
><A
HREF="configuration.directives.html"
>Configuration directives</A
></DT
></DL
></DIV
><DIV
CLASS="sect1"
><H1
CLASS="sect1"
><A
NAME="configuration.file"
></A
>The configuration file</H1
><P
>&#13;    The configuration file (called <TT
CLASS="filename"
>php3.ini</TT
> in
    PHP 3.0, and simply <TT
CLASS="filename"
>php.ini</TT
> as of PHP 4.0)
    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
    <SPAN
CLASS="acronym"
>CGI</SPAN
> and <SPAN
CLASS="acronym"
>CLI</SPAN
> version, it happens on
    every invocation.
   </P
><P
>&#13;    The default location of <TT
CLASS="filename"
>php.ini</TT
> is a compile time option (see the <A
HREF="faq.installation.html#faq.installation.phpini"
>FAQ</A
> entry), but can be changed
    for the <SPAN
CLASS="acronym"
>CGI</SPAN
> and <SPAN
CLASS="acronym"
>CLI</SPAN
> version with the
    <TT
CLASS="literal"
>-c</TT
> command line switch, see the chapter about using
    <TT
CLASS="literal"
>PHP</TT
> from the <A
HREF="features.commandline.html"
>command line</A
>. You can also use the
    environment variable <TT
CLASS="literal"
>PHPRC</TT
> for an additional path to
    search for a <TT
CLASS="filename"
>php.ini</TT
> file.
   </P
><P
>&#13;    Not every PHP directive is documented below. For a list of all directives, 
    please read your well commented <TT
CLASS="filename"
>php.ini</TT
> file. You may want to view the 
    latest <A
HREF="http://cvs.php.net/co.php/php4/php.ini-dist"
TARGET="_top"
>php.ini here</A
> from CVS.
   </P
><DIV
CLASS="note"
><BLOCKQUOTE
CLASS="note"
><P
><B
>Note: </B
>
     The default value for the PHP directive 
     <A
HREF="configuration.directives.html#ini.register-globals"
>register_globals</A
> changed from 
     <SPAN
CLASS="emphasis"
><I
CLASS="emphasis"
>on</I
></SPAN
> to <SPAN
CLASS="emphasis"
><I
CLASS="emphasis"
>off</I
></SPAN
> in PHP 
     <A
HREF="http://www.php.net/release_4_2_0.php"
TARGET="_top"
>4.2.0</A
>.
    </P
></BLOCKQUOTE
></DIV
><P
>&#13;    <TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
CLASS="EXAMPLE"
><TR
><TD
><DIV
CLASS="example"
><A
NAME="AEN2122"
></A
><P
><B
>Example 4-1. <TT
CLASS="filename"
>php.ini</TT
> example</B
></P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
CELLPADDING="5"
><TR
><TD
><PRE
CLASS="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"</PRE
></TD
></TR
></TABLE
></DIV
></TD
></TR
></TABLE
>
   </P
></DIV
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="install.configure.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="configuration.changes.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>Complete list of configure options</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="getting-started.html"
ACCESSKEY="U"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>How to change configuration settings</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>