<HTML ><HEAD ><TITLE >phpcredits</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="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=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.php-uname.html" ACCESSKEY="P" >Prev</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" ></TD ><TD WIDTH="10%" ALIGN="right" VALIGN="bottom" ><A HREF="function.phpinfo.html" ACCESSKEY="N" >Next</A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><H1 ><A NAME="function.phpcredits" ></A >phpcredits</H1 ><DIV CLASS="refnamediv" ><A NAME="AEN75108" ></A ><P > (PHP 4 )</P >phpcredits -- Prints out the credits for PHP</DIV ><DIV CLASS="refsect1" ><A NAME="AEN75111" ></A ><H2 >Description</H2 >void <B CLASS="methodname" >phpcredits</B > ( [int flag])<BR ></BR ><P > 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. <TT CLASS="parameter" ><I >flag</I ></TT > is optional, and it defaults to <TT CLASS="constant" ><B >CREDITS_ALL</B ></TT >. To generate a custom credits page, you may want to use the <TT CLASS="parameter" ><I >flag</I ></TT > parameter. For example to print the general credits, you will use somewhere in your code: <DIV CLASS="informalexample" ><A NAME="AEN75123" ></A ><P ></P ><TABLE BORDER="0" BGCOLOR="#E0E0E0" CELLPADDING="5" ><TR ><TD ><PRE CLASS="php" >... phpcredits(CREDITS_GENERAL); ...</PRE ></TD ></TR ></TABLE ><P ></P ></DIV > And if you want to print the core developers and the documentation group, in a page of its own, you will use: <DIV CLASS="informalexample" ><A NAME="AEN75125" ></A ><P ></P ><TABLE BORDER="0" BGCOLOR="#E0E0E0" CELLPADDING="5" ><TR ><TD ><PRE CLASS="php" ><?php phpcredits(CREDITS_GROUP + CREDITS_DOCS + CREDITS_FULLPAGE); ?></PRE ></TD ></TR ></TABLE ><P ></P ></DIV > And if you feel like embedding all the credits in your page, then code like the one below will do it: <DIV CLASS="informalexample" ><A NAME="AEN75127" ></A ><P ></P ><TABLE BORDER="0" BGCOLOR="#E0E0E0" CELLPADDING="5" ><TR ><TD ><PRE CLASS="php" ><html> <head> <title>My credits page</title> </head> <body> <?php // some code of your own phpcredits(CREDITS_ALL); // some more code ?> </body> </html></PRE ></TD ></TR ></TABLE ><P ></P ></DIV > </P ><P > </P ><P > <DIV CLASS="table" ><A NAME="AEN75131" ></A ><P ><B >Table 1. Pre-defined <B CLASS="function" >phpcredits()</B > flags</B ></P ><TABLE BORDER="1" CLASS="CALSTABLE" ><THEAD ><TR ><TH ALIGN="LEFT" VALIGN="MIDDLE" >name</TH ><TH ALIGN="LEFT" VALIGN="MIDDLE" >description</TH ></TR ></THEAD ><TBODY ><TR ><TD ALIGN="LEFT" VALIGN="MIDDLE" >CREDITS_ALL</TD ><TD ALIGN="LEFT" VALIGN="MIDDLE" > 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 ALIGN="LEFT" VALIGN="MIDDLE" >CREDITS_DOCS</TD ><TD ALIGN="LEFT" VALIGN="MIDDLE" >The credits for the documentation team</TD ></TR ><TR ><TD ALIGN="LEFT" VALIGN="MIDDLE" >CREDITS_FULLPAGE</TD ><TD ALIGN="LEFT" VALIGN="MIDDLE" > Usually used in combination with the other flags. Indicates that the a complete stand-alone HTML page needs to be printed including the information indicated by the other flags. </TD ></TR ><TR ><TD ALIGN="LEFT" VALIGN="MIDDLE" >CREDITS_GENERAL</TD ><TD ALIGN="LEFT" VALIGN="MIDDLE" > General credits: Language design and concept, PHP 4.0 authors and SAPI module. </TD ></TR ><TR ><TD ALIGN="LEFT" VALIGN="MIDDLE" >CREDITS_GROUP</TD ><TD ALIGN="LEFT" VALIGN="MIDDLE" >A list of the core developers</TD ></TR ><TR ><TD ALIGN="LEFT" VALIGN="MIDDLE" >CREDITS_MODULES</TD ><TD ALIGN="LEFT" VALIGN="MIDDLE" > A list of the extension modules for PHP, and their authors </TD ></TR ><TR ><TD ALIGN="LEFT" VALIGN="MIDDLE" >CREDITS_SAPI</TD ><TD ALIGN="LEFT" VALIGN="MIDDLE" > A list of the server API modules for PHP, and their authors </TD ></TR ></TBODY ></TABLE ></DIV > </P ><P > See also: <A HREF="function.phpinfo.html" ><B CLASS="function" >phpinfo()</B ></A >, <A HREF="function.phpversion.html" ><B CLASS="function" >phpversion()</B ></A >, and <A HREF="function.php-logo-guid.html" ><B CLASS="function" >php_logo_guid()</B ></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.php-uname.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.phpinfo.html" ACCESSKEY="N" >Next</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" >Up</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >phpinfo</TD ></TR ></TABLE ></DIV ></BODY ></HTML >