mirror of
https://github.com/php/web-php.git
synced 2026-03-24 07:12:16 +01:00
189 lines
6.5 KiB
PHP
189 lines
6.5 KiB
PHP
<?php
|
|
require_once 'prepend.inc';
|
|
|
|
$SIDEBAR_DATA='
|
|
<h3>FAQ</h3>
|
|
<p>
|
|
The <a href="/FAQ.php">PHP FAQ</a> is your first stop for general
|
|
information and those questions that seem to be on most people\'s minds.
|
|
</p>
|
|
|
|
<h3>Books</h3>
|
|
<p>
|
|
<a href="/books.php">Books</a> are convenient resources to begin exploring
|
|
PHP. <a href="/books.php">The titles listed here</a> will help you to start
|
|
learning PHP, as well as extending your existing knowledge.
|
|
</p>
|
|
|
|
<h3>Sample Code</h3>
|
|
<p>
|
|
Looking for some more sample PHP scripts? Our <A
|
|
HREF="/links.php">links page</A> page lists some archives of sample PHP code -
|
|
great places to find many example scripts and useful functions, organized for
|
|
your searching pleasure!
|
|
</p>
|
|
';
|
|
|
|
commonHeader("Documentation");
|
|
|
|
$man_languages = array('en', 'pt_BR', 'cs', 'nl', 'fr', 'de', 'hu', 'it', 'ja', 'kr', 'es');
|
|
|
|
# array structure: (header, link text, show_size_in_link)
|
|
$formats = array(
|
|
"" => array("View Online", "view", false),
|
|
"html/" => array("View Online (plain)", "view", false),
|
|
"bigmanual.html.gz" => array("Single HTML", "html.gz", true),
|
|
"manual.txt.gz" => array("Plain text", "txt.gz", true),
|
|
"manual.tar.gz" => array("Many HTML files", "tar.gz", true),
|
|
"manual.zip" => array("Many HTML files", "zip", true),
|
|
"manual.pdf" => array("PDF", "pdf", false),
|
|
"manual_doc.pdb" => array("PalmPilot DOC", "doc.pdb", true),
|
|
"manual_isilo.pdb" => array("PalmPilot iSilo", "isilo.pdb", true),
|
|
"manual.chm" => array("Windows HTML Help", "chm", true)
|
|
);
|
|
?>
|
|
|
|
<h1>PHP Manual</h1>
|
|
|
|
<p>The PHP manual is available in a selection of languages
|
|
and formats. Pick a language and format from the table below.
|
|
Tip: If you are using Internet Explorer, the file size
|
|
will show up, when you move the mouse above one link.
|
|
If you use another browser you can
|
|
<a href="/docs.php?sizes=1">click here to see the file sizes</a>.
|
|
</p>
|
|
|
|
<table border="0" cellpadding="2" cellspacing="1" width="100%">
|
|
<tr bgcolor="#cccccc">
|
|
<td></td>
|
|
<?php
|
|
while (list($k,$v) = each($formats)) {
|
|
echo "<th valign=\"bottom\">$v[0]</th>\n";
|
|
}?>
|
|
</tr>
|
|
<?php
|
|
while (list(,$langcode) = each($man_languages)) {
|
|
$language = $LANGUAGES[$langcode];
|
|
echo "<tr>\n<td bgcolor=\"#dddddd\"><b>$language</b></td>\n";
|
|
reset($formats);
|
|
while (list($fn,$details) = each($formats)) {
|
|
echo "<td align=\"center\" bgcolor=\"#eeeeee\">";
|
|
|
|
# temporary hacks until pdf and chm are auto-generated
|
|
if ($fn == "manual.pdf") {
|
|
$link_to = "http://snaps.php.net/~jah/pdf/manual-$langcode.pdf";
|
|
} elseif ($fn == "manual.chm") {
|
|
$link_to = "distributions/manual_$langcode.chm";
|
|
} else {
|
|
$link_to = "manual/$langcode/$fn";
|
|
}
|
|
|
|
# if no size required [pdf, online], then just print, else
|
|
# decide what to do according to the $size of the file
|
|
if (!$details[2]) { echo "<a href=\"$link_to\">$details[1]</a>"; }
|
|
else {
|
|
$size = @filesize($link_to);
|
|
if ($size) {
|
|
echo "<a href=\"$link_to\" title=\"" . (int) ($size/1024) . "Kb\">$details[1]</a>";
|
|
if ($sizes) { echo '<br><small>' . (int) ($size/1024) . 'Kb</small>'; }
|
|
} else {
|
|
echo " ";
|
|
}
|
|
}
|
|
|
|
echo "</td>\n";
|
|
}
|
|
}?>
|
|
</table>
|
|
|
|
<h1>Manuel PHP</h1>
|
|
|
|
<p>The French PHP manual is also available on an external site, in differents formats.
|
|
Documentation is the official flavor, while formating and localization has
|
|
been worked some more (function and examples indexes, short version, search engine..).
|
|
Besides, those are compressed for faster download.
|
|
</p>
|
|
<p>La documentation Française est disponible sur un site secondaire,
|
|
dans différents formats. C'est la version officielle, complètement
|
|
francisée et retravaillée . De plus, ces docs sont compressées.
|
|
</p>
|
|
|
|
<table border="0" cellpadding="2" cellspacing="1" width="100%">
|
|
<tr bgcolor="#cccccc">
|
|
<td></td>
|
|
<th valign="bottom">En ligne</th>
|
|
<th valign="bottom">En ligne</th>
|
|
<th valign="bottom">HTML</th>
|
|
<th valign="bottom">Texte</th>
|
|
<th valign="bottom">HTML</th>
|
|
<th valign="bottom">HTML</th>
|
|
<th valign="bottom">PDF</th>
|
|
<th valign="bottom">PalmPilot DOC</th>
|
|
<th valign="bottom">PalmPilot iSilo</th>
|
|
<th valign="bottom">Windows HTML Help</th>
|
|
</tr>
|
|
<tr>
|
|
<td bgcolor="#dddddd"><b>Français</b></td>
|
|
<td align="center" bgcolor="#eeeeee"><a href="http://dev.nexen.net/docs/php/annotee/">Voir</a></td>
|
|
<td align="center" bgcolor="#eeeeee"><a href="http://dev.nexen.net/docs/php/annotee/">Voir</a></td>
|
|
<td align="center" bgcolor="#eeeeee"><a href="http://dev.nexen.net/docs/php/chargement.html">html.gz</a></td>
|
|
<td align="center" bgcolor="#eeeeee"><a href="http://dev.nexen.net/docs/php/chargement.html">txt.gz</a></td>
|
|
<td align="center" bgcolor="#eeeeee"><a href="http://dev.nexen.net/docs/php/chargement.html">tar.gz</a></td>
|
|
<td align="center" bgcolor="#eeeeee"><a href="http://dev.nexen.net/docs/php/chargement.html">zip</a></td>
|
|
<td align="center" bgcolor="#eeeeee"><a href="http://dev.nexen.net/docs/php/chargement.html">pdf</a></td>
|
|
<td align="center" bgcolor="#eeeeee"> </td>
|
|
<td align="center" bgcolor="#eeeeee"> </td>
|
|
<td align="center" bgcolor="#eeeeee"><a href="http://dev.nexen.net/docs/php/chargement.html">chm</a></td>
|
|
</tr>
|
|
</table>
|
|
|
|
<? echo hdelim(); ?>
|
|
|
|
<H1>PHP Annotated Manuals</H1>
|
|
<ul>
|
|
<LI><A href="http://www.php.net/manual/">PHP Annotated Manual</A>. This
|
|
is the same as the above, except there is a built-in errata/note system
|
|
that users all around the world can (and have!) contributed to. Of
|
|
all of the documentation, this will be the most current version,
|
|
as it is updated (and annotated) daily.
|
|
|
|
<LI><A href="http://www.php.net/manual/browse-errata.php">PHP Manual
|
|
Errata</A>. This is the collected errata from the on-line errata/note
|
|
system.
|
|
</ul>
|
|
|
|
<? echo hdelim(); ?>
|
|
|
|
<h1>More Information</h1>
|
|
|
|
<ul>
|
|
<li><a href="http://zugeschaut-und-mitgebaut.de/php/">PHP Function Table</a>.
|
|
This page has a overview about which pages are translated to the
|
|
different languages and in which versions of PHP the functions
|
|
are available.
|
|
<li>License questions? See the <a href="/license/#FAQ">License FAQ</a></li>
|
|
</ul>
|
|
|
|
<? echo hdelim(); ?>
|
|
|
|
|
|
<H1>CVS Account</H1>
|
|
<ul>
|
|
<li><a href="/anoncvs.php">CVS instructions</a></li>
|
|
<li><A href="/cvs-php.php">Getting a CVS account</a>. If you wish to help out
|
|
with the development of PHP, read this.
|
|
</ul>
|
|
|
|
|
|
|
|
<? echo hdelim(); ?>
|
|
|
|
|
|
<h1>Old/Unsupported Information</h1>
|
|
<ul>
|
|
<li><a href="/manual/phpfi2.php">PHP/FI 2.0 Manual</a>.
|
|
</ul>
|
|
|
|
|
|
<?php commonFooter("") ?>
|