<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>Prints out the credits for PHP</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.php-uname.html">php_uname</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.phpinfo.html">phpinfo</a></div> <div class="up"><a href="ref.info.html">PHP Options/Info Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="function.phpcredits" class="refentry"> <div class="refnamediv"> <h1 class="refname">phpcredits</h1> <p class="verinfo">(PHP 4, PHP 5)</p><p class="refpurpose"><span class="refname">phpcredits</span> — <span class="dc-title">Prints out the credits for PHP</span></p> </div> <div class="refsect1 description" id="refsect1-function.phpcredits-description"> <h3 class="title">Description</h3> <div class="methodsynopsis dc-description"> <span class="type">bool</span> <span class="methodname"><strong>phpcredits</strong></span> ([ <span class="methodparam"><span class="type">int</span> <code class="parameter">$flag</code><span class="initializer"> = CREDITS_ALL</span></span> ] )</div> <p class="para rdfs-comment"> 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 parameters" id="refsect1-function.phpcredits-parameters"> <h3 class="title">Parameters</h3> <p class="para"> <dl> <dt> <span class="term"><em><code class="parameter">flag</code></em></span> <dd> <p class="para"> To generate a custom credits page, you may want to use the <em><code class="parameter">flag</code></em> parameter. </p> <p class="para"> <table class="doctable table"> <caption><strong>Pre-defined <span class="function"><strong>phpcredits()</strong></span> flags</strong></caption> <thead> <tr> <th>name</th> <th>description</th> </tr> </thead> <tbody class="tbody"> <tr> <td>CREDITS_ALL</td> <td> All the credits, equivalent to using: <strong><code>CREDITS_DOCS</code></strong> + <strong><code>CREDITS_GENERAL</code></strong> + <strong><code>CREDITS_GROUP</code></strong> + <strong><code>CREDITS_MODULES</code></strong> + <strong><code>CREDITS_FULLPAGE</code></strong>. 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 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 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> </p> </dd> </dt> </dl> </p> </div> <div class="refsect1 returnvalues" id="refsect1-function.phpcredits-returnvalues"> <h3 class="title">Return Values</h3> <p class="para"> Returns <strong><code>TRUE</code></strong> on success or <strong><code>FALSE</code></strong> on failure. </p> </div> <div class="refsect1 examples" id="refsect1-function.phpcredits-examples"> <h3 class="title">Examples</h3> <p class="para"> <div class="example" id="example-511"> <p><strong>Example #1 Prints the general credits</strong></p> <div class="example-contents"> <div class="phpcode"><code><span style="color: #000000"> <span style="color: #0000BB"><?php<br />phpcredits</span><span style="color: #007700">(</span><span style="color: #0000BB">CREDITS_GENERAL</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">?></span> </span> </code></div> </div> </div> </p> <p class="para"> <div class="example" id="example-512"> <p><strong>Example #2 Prints the core developers and the documentation group</strong></p> <div class="example-contents"> <div class="phpcode"><code><span style="color: #000000"> <span style="color: #0000BB"><?php<br />phpcredits</span><span style="color: #007700">(</span><span style="color: #0000BB">CREDITS_GROUP </span><span style="color: #007700">| </span><span style="color: #0000BB">CREDITS_DOCS </span><span style="color: #007700">| </span><span style="color: #0000BB">CREDITS_FULLPAGE</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">?></span> </span> </code></div> </div> </div> </p> <p class="para"> <div class="example" id="example-513"> <p><strong>Example #3 Printing all the credits</strong></p> <div class="example-contents"> <div class="phpcode"><code><span style="color: #000000"> <html><br /> <head><br /> <title>My credits page</title><br /> </head><br /> <body><br /><span style="color: #0000BB"><?php<br /></span><span style="color: #FF8000">// some code of your own<br /></span><span style="color: #0000BB">phpcredits</span><span style="color: #007700">(</span><span style="color: #0000BB">CREDITS_ALL </span><span style="color: #007700">- </span><span style="color: #0000BB">CREDITS_FULLPAGE</span><span style="color: #007700">);<br /></span><span style="color: #FF8000">// some more code<br /></span><span style="color: #0000BB">?><br /></span> </body><br /></html></span> </code></div> </div> </div> </p> </div> <div class="refsect1 notes" id="refsect1-function.phpcredits-notes"> <h3 class="title">Notes</h3> <blockquote class="note"><p><strong class="note">Note</strong>: <p class="para"> <span class="function"><strong>phpcredits()</strong></span> outputs plain text instead of HTML when using the CLI mode. </p> </p></blockquote> </div> <div class="refsect1 seealso" id="refsect1-function.phpcredits-seealso"> <h3 class="title">See Also</h3> <p class="para"> <ul class="simplelist"> <li class="member"> <span class="function"><a href="function.phpversion.html" class="function" rel="rdfs-seeAlso">phpversion()</a> - Gets the current PHP version</span></li> <li class="member"> <span class="function"><a href="function.php-logo-guid.html" class="function" rel="rdfs-seeAlso">php_logo_guid()</a> - Gets the logo guid</span></li> <li class="member"> <span class="function"><a href="function.phpinfo.html" class="function" rel="rdfs-seeAlso">phpinfo()</a> - Outputs information about PHP's configuration</span></li> </ul> </p> </div> </div><hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.php-uname.html">php_uname</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.phpinfo.html">phpinfo</a></div> <div class="up"><a href="ref.info.html">PHP Options/Info Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>