Source of: /manual/en/function.phpcredits.php
<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.info.inc";
$setup = array (
'home' =>
array (
0 => 'index.php',
1 => 'PHP Manual',
),
'head' =>
array (
0 => 'UTF-8',
1 => 'en',
),
'this' =>
array (
0 => 'function.phpcredits.php',
1 => 'phpcredits',
),
'up' =>
array (
0 => 'ref.info.php',
1 => 'PHP Options/Info Functions',
),
'prev' =>
array (
0 => 'function.php-uname.php',
1 => 'php_uname',
),
'next' =>
array (
0 => 'function.phpinfo.php',
1 => 'phpinfo',
),
);
$setup["toc"] = $TOC;
$setup["parents"] = $PARENTS;
manual_setup($setup);
manual_header();
?>
<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>
<a name="function.phpcredits.description"></a><div class="refsect1 description">
<h3 class="title">Description</h3>
<div class="methodsynopsis dc-description">
<span class="type">bool</span> <span class="methodname"><b>phpcredits</b></span>
([ <span class="methodparam"><span class="type">int</span> <tt class="parameter">$flag</tt><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>
<a name="function.phpcredits.parameters"></a><div class="refsect1 parameters">
<h3 class="title">Parameters</h3>
<p class="para">
</p><dl>
<dt class="varlistentry">
<span class="term"><i><tt class="parameter">flag</tt></i>
</span>
</dt><dd class="listitem">
<p class="para">
To generate a custom credits page, you may want to use the
<i><tt class="parameter">flag</tt></i>
parameter. <i><tt class="parameter">flag</tt></i>
is
optional, and it defaults to <b><tt class="constant">CREDITS_ALL</tt></b>.
</p>
<p class="para">
</p><table class="doctable table">
<caption><b>Pre-defined <b>phpcredits()</b> flags</b></caption>
<thead valign="middle">
<tr valign="middle">
<th>name</th>
<th>description</th>
</tr>
</thead>
<tbody valign="middle" class="tbody">
<tr valign="middle">
<td align="left">CREDITS_ALL</td>
<td align="left">
All the credits, equivalent to using: <b><tt class="constant">CREDITS_DOCS</tt></b> +
<b><tt class="constant">CREDITS_GENERAL</tt></b> + <b><tt class="constant">CREDITS_GROUP</tt></b> +
<b><tt class="constant">CREDITS_MODULES</tt></b> + <b><tt class="constant">CREDITS_FULLPAGE</tt></b>.
It generates a complete stand-alone HTML page with the appropriate tags.
</td>
</tr>
<tr valign="middle">
<td align="left">CREDITS_DOCS</td>
<td align="left">The credits for the documentation team</td>
</tr>
<tr valign="middle">
<td align="left">CREDITS_FULLPAGE</td>
<td align="left">
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 valign="middle">
<td align="left">CREDITS_GENERAL</td>
<td align="left">
General credits: Language design and concept, PHP 4.0
authors and SAPI module.
</td>
</tr>
<tr valign="middle">
<td align="left">CREDITS_GROUP</td>
<td align="left">A list of the core developers</td>
</tr>
<tr valign="middle">
<td align="left">CREDITS_MODULES</td>
<td align="left">
A list of the extension modules for PHP, and their authors
</td>
</tr>
<tr valign="middle">
<td align="left">CREDITS_SAPI</td>
<td align="left">
A list of the server API modules for PHP, and their authors
</td>
</tr>
</tbody>
</table>
<p>
</p>
</dd>
</dl>
<p>
</p>
</div>
<a name="function.phpcredits.returnvalues"></a><div class="refsect1 returnvalues">
<h3 class="title">Return Values</h3>
<p class="para">
Returns <b><tt class="constant">TRUE</tt></b> on success or <b><tt class="constant">FALSE</tt></b> on failure.
</p>
</div>
<a name="function.phpcredits.examples"></a><div class="refsect1 examples">
<h3 class="title">Examples</h3>
<p class="para">
</p><div class="example">
<p><b>Example #1 Prints the general credits</b></p>
<div class="example-contents programlisting">
<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>
<p class="para">
</p><div class="example">
<p><b>Example #2 Prints the core developers and the documentation group</b></p>
<div class="example-contents programlisting">
<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>
<p class="para">
</p><div class="example">
<p><b>Example #3 Printing all the credits</b></p>
<div class="example-contents programlisting">
<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>
</p>
</div>
<a name="function.phpcredits.seealso"></a><div class="refsect1 seealso">
<h3 class="title">See Also</h3>
<p class="para">
</p><ul class="simplelist">
<li class="member"><a href="function.phpversion.php" class="function" rel="rdfs-seeAlso">phpversion()</a> - Gets the current PHP version</li>
<li class="member"><a href="function.php-logo-guid.php" class="function" rel="rdfs-seeAlso">php_logo_guid()</a> - Gets the logo guid</li>
<li class="member"><a href="function.phpinfo.php" class="function" rel="rdfs-seeAlso">phpinfo()</a> - Outputs lots of PHP information</li>
</ul><p>
</p>
</div>
</div><?php manual_footer(); ?>