Sophie

Sophie

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

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

<HTML
><HEAD
><TITLE
>phpinfo</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="PHP Options&Information"
HREF="ref.info.html"><LINK
REL="PREVIOUS"
TITLE="phpcredits"
HREF="function.phpcredits.html"><LINK
REL="NEXT"
TITLE="phpversion"
HREF="function.phpversion.html"><META
HTTP-EQUIV="Content-type"
CONTENT="text/html; charset=ISO-8859-1"></HEAD
><BODY
CLASS="refentry"
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="function.phpcredits.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="function.phpversion.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><H1
><A
NAME="function.phpinfo"
></A
>phpinfo</H1
><DIV
CLASS="refnamediv"
><A
NAME="AEN75166"
></A
><P
>    (PHP 3, PHP 4 )</P
>phpinfo&nbsp;--&nbsp;Outputs lots of PHP information</DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN75169"
></A
><H2
>Description</H2
>int <B
CLASS="methodname"
>phpinfo</B
> ( [int what])<BR
></BR
><P
>&#13;     Outputs a large amount of information about the current state of
     PHP. This includes information about PHP compilation options and
     extensions, the PHP version, server information and environment
     (if compiled as a module), the PHP environment, OS version
     information, paths, master and local values of configuration
     options, HTTP headers, and the PHP License.
    </P
><P
>&#13;     Because every system is setup differently,
     <B
CLASS="function"
>phpinfo()</B
> is commonly used to check <A
HREF="configuration.html"
>configuration settings</A
> and for
     available <A
HREF="language.variables.predefined.html"
>predefined
     variables</A
> on a given system.  Also,
     <B
CLASS="function"
>phpinfo()</B
> is a valuable debugging tool as it
     contains all EGPCS (Environment, GET, POST, Cookie, Server) data.
    </P
><P
>&#13;     The output may be customized by passing one or more of the
     following <SPAN
CLASS="emphasis"
><I
CLASS="emphasis"
>constants</I
></SPAN
> bitwise values summed
     together in the optional <TT
CLASS="parameter"
><I
>what</I
></TT
> parameter.
     One can also combine the respective constants or bitwise values
     together with the <A
HREF="language.operators.bitwise.html"
>or</A
> operator.

     <DIV
CLASS="table"
><A
NAME="AEN75187"
></A
><P
><B
>Table 1. <B
CLASS="function"
>phpinfo()</B
> options</B
></P
><TABLE
BORDER="1"
CLASS="CALSTABLE"
><THEAD
><TR
><TH
ALIGN="LEFT"
VALIGN="MIDDLE"
>Name (constant)</TH
><TH
ALIGN="LEFT"
VALIGN="MIDDLE"
>Value</TH
><TH
ALIGN="LEFT"
VALIGN="MIDDLE"
>Description</TH
></TR
></THEAD
><TBODY
><TR
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>INFO_GENERAL</TD
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>1</TD
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>&#13;          The configuration line, <TT
CLASS="filename"
>php.ini</TT
> location, build date, Web
          Server, System and more.
         </TD
></TR
><TR
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>INFO_CREDITS</TD
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>2</TD
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>&#13;          PHP 4 Credits.  See also <A
HREF="function.phpcredits.html"
><B
CLASS="function"
>phpcredits()</B
></A
>.
         </TD
></TR
><TR
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>INFO_CONFIGURATION</TD
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>4</TD
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>&#13;          Current Local and Master values for php directives.  See
          also <A
HREF="function.ini-get.html"
><B
CLASS="function"
>ini_get()</B
></A
>.
         </TD
></TR
><TR
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>INFO_MODULES</TD
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>8</TD
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>&#13;          Loaded modules and their respective settings.
         </TD
></TR
><TR
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>INFO_ENVIRONMENT</TD
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>16</TD
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>&#13;          Environment Variable information that's also available in
          <TT
CLASS="varname"
>$_ENV</TT
>.
         </TD
></TR
><TR
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>INFO_VARIABLES</TD
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>32</TD
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>&#13;          Shows all <A
HREF="language.variables.predefined.html"
>&#13;          predefined variables</A
> from EGPCS (Environment, GET,
          POST, Cookie, Server).
         </TD
></TR
><TR
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>INFO_LICENSE</TD
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>64</TD
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>&#13;          PHP License information.  See also the <A
HREF="http://www.php.net/license/"
TARGET="_top"
>license faq</A
>.
         </TD
></TR
><TR
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>INFO_ALL</TD
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>-1</TD
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>&#13;          Shows all of the above.  This is the default value.
         </TD
></TR
></TBODY
></TABLE
></DIV
>
    </P
><P
>&#13;     <TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
CLASS="EXAMPLE"
><TR
><TD
><DIV
CLASS="example"
><A
NAME="AEN75236"
></A
><P
><B
>Example 1. <B
CLASS="function"
>phpinfo()</B
> examples</B
></P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
CELLPADDING="5"
><TR
><TD
><PRE
CLASS="php"
>&#60;?php

// Show all information, defaults to INFO_ALL
phpinfo();

// Show just the module information.
// phpinfo(8) yields identical results.
phpinfo(INFO_MODULES);

?&#62;</PRE
></TD
></TR
></TABLE
></DIV
></TD
></TR
></TABLE
>
    </P
><DIV
CLASS="note"
><BLOCKQUOTE
CLASS="note"
><P
><B
>Note: </B
>
      Parts of the information displayed are disabled when the
      <TT
CLASS="literal"
>expose_php</TT
> configuration setting is set to
      <TT
CLASS="literal"
>off</TT
>. This includes the PHP and Zend logos,
      and the credits.
     </P
></BLOCKQUOTE
></DIV
><P
>&#13;    See also: <A
HREF="function.phpversion.html"
><B
CLASS="function"
>phpversion()</B
></A
>,
    <A
HREF="function.phpcredits.html"
><B
CLASS="function"
>phpcredits()</B
></A
>,
    <A
HREF="function.php-logo-guid.html"
><B
CLASS="function"
>php_logo_guid()</B
></A
>, <A
HREF="function.ini-get.html"
><B
CLASS="function"
>ini_get()</B
></A
>,
    <A
HREF="function.ini-set.html"
><B
CLASS="function"
>ini_set()</B
></A
>, and the section on <A
HREF="language.variables.predefined.html"
>Predefined
    Variables</A
>.
    </P
></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="function.phpcredits.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="function.phpversion.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>phpcredits</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="ref.info.html"
ACCESSKEY="U"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>phpversion</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>