Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > by-pkgid > 05cd670d8a02b2b4a0ffb1756f2e8308 > files > 3786

php-manual-zh-5.2.4-1mdv2008.1.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML
><HEAD
><TITLE
>phpcredits</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK
REL="HOME"
TITLE="PHP 手册"
HREF="index.html"><LINK
REL="UP"
TITLE="PHP Options&Information"
HREF="ref.info.html"><LINK
REL="PREVIOUS"
TITLE="php_uname"
HREF="function.php-uname.html"><LINK
REL="NEXT"
TITLE="phpinfo"
HREF="function.phpinfo.html"><META
HTTP-EQUIV="Content-type"
CONTENT="text/html; charset=UTF-8"></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 手册</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="function.php-uname.html"
ACCESSKEY="P"
>上一页</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="function.phpinfo.html"
ACCESSKEY="N"
>下一页</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><H1
><A
NAME="function.phpcredits"
></A
>phpcredits</H1
><DIV
CLASS="refnamediv"
><A
NAME="AEN182029"
></A
><P
>    (PHP 4, PHP 5)</P
>phpcredits&nbsp;--&nbsp;Prints out the credits for PHP</DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN182032"
></A
><H2
>说明</H2
>bool <B
CLASS="methodname"
>phpcredits</B
> ( [int flag] )<BR
></BR
><P
>&#13;   This function prints out the credits listing the PHP developers,
   modules, etc. It generates the appropriate HTML codes to insert
   the information in a page. 
  </P
></DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN182041"
></A
><H2
>参数</H2
><P
>&#13;   <P
></P
><DIV
CLASS="variablelist"
><DL
><DT
><CODE
CLASS="parameter"
>flag</CODE
></DT
><DD
><P
>&#13;       To generate a custom credits page, you may want to use the
       <CODE
CLASS="parameter"
>flag</CODE
> parameter. <CODE
CLASS="parameter"
>flag</CODE
> is
       optional, and it defaults to <TT
CLASS="constant"
><B
>CREDITS_ALL</B
></TT
>.
      </P
><P
>&#13;       <DIV
CLASS="table"
><A
NAME="AEN182054"
></A
><P
><B
>表 1. Pre-defined <B
CLASS="function"
>phpcredits()</B
> flags</B
></P
><TABLE
BORDER="1"
CLASS="CALSTABLE"
><COL><COL><THEAD
><TR
><TH
>name</TH
><TH
>description</TH
></TR
></THEAD
><TBODY
><TR
><TD
>CREDITS_ALL</TD
><TD
>&#13;            All the credits, equivalent to using: CREDITS_DOCS +
            CREDITS_GENERAL + CREDITS_GROUP + CREDITS_MODULES +
            CREDITS_FULLPAGE. It generates a complete stand-alone HTML
            page with the appropriate tags.
           </TD
></TR
><TR
><TD
>CREDITS_DOCS</TD
><TD
>The credits for the documentation team</TD
></TR
><TR
><TD
>CREDITS_FULLPAGE</TD
><TD
>&#13;            Usually used in combination with the other flags.  Indicates
            that a complete stand-alone HTML page needs to be
            printed including the information indicated by the other
            flags.
           </TD
></TR
><TR
><TD
>CREDITS_GENERAL</TD
><TD
>&#13;            General credits: Language design and concept, PHP 4.0
            authors and SAPI module.
           </TD
></TR
><TR
><TD
>CREDITS_GROUP</TD
><TD
>A list of the core developers</TD
></TR
><TR
><TD
>CREDITS_MODULES</TD
><TD
>&#13;            A list of the extension modules for PHP, and their authors
           </TD
></TR
><TR
><TD
>CREDITS_SAPI</TD
><TD
>&#13;            A list of the server API modules for PHP, and their authors
           </TD
></TR
></TBODY
></TABLE
></DIV
>
      </P
></DD
></DL
></DIV
>
  </P
></DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN182084"
></A
><H2
>返回值</H2
><P
>&#13;   如果成功则返回 <TT
CLASS="constant"
><B
>TRUE</B
></TT
>,失败则返回 <TT
CLASS="constant"
><B
>FALSE</B
></TT
>。
  </P
></DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN182089"
></A
><H2
>范例</H2
><P
>&#13;   <TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
CLASS="EXAMPLE"
><TR
><TD
><DIV
CLASS="example"
><A
NAME="AEN182092"
></A
><P
><B
>例 1. Prints the general credits</B
></P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
CELLPADDING="5"
><TR
><TD
><code><font color="#000000">
<font color="#0000BB">&lt;?php<br />phpcredits</font><font color="#007700">(</font><font color="#0000BB">CREDITS_GENERAL</font><font color="#007700">);<br /></font><font color="#0000BB">?&gt;</font>
</font>
</code></TD
></TR
></TABLE
></DIV
></TD
></TR
></TABLE
>
  </P
><P
>&#13;   <TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
CLASS="EXAMPLE"
><TR
><TD
><DIV
CLASS="example"
><A
NAME="AEN182096"
></A
><P
><B
>例 2. Prints the core developers and the documentation group</B
></P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
CELLPADDING="5"
><TR
><TD
><code><font color="#000000">
<font color="#0000BB">&lt;?php<br />phpcredits</font><font color="#007700">(</font><font color="#0000BB">CREDITS_GROUP </font><font color="#007700">+ </font><font color="#0000BB">CREDITS_DOCS </font><font color="#007700">+ </font><font color="#0000BB">CREDITS_FULLPAGE</font><font color="#007700">);<br /></font><font color="#0000BB">?&gt;</font>
</font>
</code></TD
></TR
></TABLE
></DIV
></TD
></TR
></TABLE
>
  </P
><P
>&#13;   <TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
CLASS="EXAMPLE"
><TR
><TD
><DIV
CLASS="example"
><A
NAME="AEN182100"
></A
><P
><B
>例 3. Printing all the credits</B
></P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
CELLPADDING="5"
><TR
><TD
><code><font color="#000000">
&lt;html&gt;<br /> &lt;head&gt;<br />&nbsp;&nbsp;&lt;title&gt;My credits page&lt;/title&gt;<br /> &lt;/head&gt;<br /> &lt;body&gt;<br /><font color="#0000BB">&lt;?php<br /></font><font color="#FF8000">// some code of your own<br /></font><font color="#0000BB">phpcredits</font><font color="#007700">(</font><font color="#0000BB">CREDITS_ALL </font><font color="#007700">- </font><font color="#0000BB">CREDITS_FULLPAGE</font><font color="#007700">);<br /></font><font color="#FF8000">// some more code<br /></font><font color="#0000BB">?&gt;<br /></font> &lt;/body&gt;<br />&lt;/html&gt;</font>
</code></TD
></TR
></TABLE
></DIV
></TD
></TR
></TABLE
>
  </P
></DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN182103"
></A
><H2
>参见</H2
><P
>&#13;   <P
></P
><TABLE
BORDER="0"
><TBODY
><TR
><TD
><A
HREF="function.phpversion.html"
><B
CLASS="function"
>phpversion()</B
></A
></TD
></TR
><TR
><TD
><A
HREF="function.php-logo-guid.html"
><B
CLASS="function"
>php_logo_guid()</B
></A
></TD
></TR
><TR
><TD
><A
HREF="function.phpinfo.html"
><B
CLASS="function"
>phpinfo()</B
></A
></TD
></TR
></TBODY
></TABLE
><P
></P
>
  </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.php-uname.html"
ACCESSKEY="P"
>上一页</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>起始页</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="function.phpinfo.html"
ACCESSKEY="N"
>下一页</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>php_uname</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="ref.info.html"
ACCESSKEY="U"
>上一级</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>phpinfo</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>