<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <HTML ><HEAD ><TITLE >phpcredits</TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK REL="HOME" TITLE="Manual 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=ISO-8859-2"></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" >Manual PHP</TH ></TR ><TR ><TD WIDTH="10%" ALIGN="left" VALIGN="bottom" ><A HREF="function.php-uname.html" ACCESSKEY="P" >Înapoi</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" ></TD ><TD WIDTH="10%" ALIGN="right" VALIGN="bottom" ><A HREF="function.phpinfo.html" ACCESSKEY="N" >Înainte</A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><H1 ><A NAME="function.phpcredits" ></A >phpcredits</H1 ><DIV CLASS="refnamediv" ><A NAME="AEN92711" ></A ><P > (PHP 4 , PHP 5)</P >phpcredits -- Prints out the credits for PHP</DIV ><DIV CLASS="refsect1" ><A NAME="AEN92714" ></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. <VAR CLASS="parameter" >flag</VAR > 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 <VAR CLASS="parameter" >flag</VAR > parameter. For example to print the general credits, you will use somewhere in your code: </P ><P > <DIV CLASS="informalexample" ><P ></P ><A NAME="AEN92727" ></A ><TABLE BORDER="0" BGCOLOR="#E0E0E0" CELLPADDING="5" ><TR ><TD ><code><font color="#000000"> <font color="#0000BB"><?php<br />phpcredits</font><font color="#007700">(</font><font color="#0000BB">CREDITS_GENERAL</font><font color="#007700">);<br /></font><font color="#0000BB">?></font> </font> </code></TD ></TR ></TABLE ><P ></P ></DIV > </P ><P > And if you want to print the core developers and the documentation group, in a page of its own, you will use: </P ><P > <DIV CLASS="informalexample" ><P ></P ><A NAME="AEN92731" ></A ><TABLE BORDER="0" BGCOLOR="#E0E0E0" CELLPADDING="5" ><TR ><TD ><code><font color="#000000"> <font color="#0000BB"><?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">?></font> </font> </code></TD ></TR ></TABLE ><P ></P ></DIV > </P ><P > And if you feel like embedding all the credits in your page, then code like the one below will do it: </P ><P > <DIV CLASS="informalexample" ><P ></P ><A NAME="AEN92735" ></A ><TABLE BORDER="0" BGCOLOR="#E0E0E0" CELLPADDING="5" ><TR ><TD ><code><font color="#000000"> <html><br /> <head><br /> <title>My credits page</title><br /> </head><br /> <body><br /><font color="#0000BB"><?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">?><br /></font> </body><br /></html></font> </code></TD ></TR ></TABLE ><P ></P ></DIV > </P ><P > <DIV CLASS="table" ><A NAME="AEN92738" ></A ><P ><B >Tabel 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 > 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 > 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 >CREDITS_GENERAL</TD ><TD > 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 > A list of the extension modules for PHP, and their authors </TD ></TR ><TR ><TD >CREDITS_SAPI</TD ><TD > 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" >Înapoi</A ></TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="index.html" ACCESSKEY="H" >Acasã</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><A HREF="function.phpinfo.html" ACCESSKEY="N" >Înainte</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" >Sus</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >phpinfo</TD ></TR ></TABLE ></DIV ></BODY ></HTML >