1<?php 2$_SERVER['BASE_PAGE'] = 'docs.php'; 3include_once __DIR__ . '/include/prepend.inc'; 4 5site_header("Documentation", ["current" => "docs"]); 6 7?> 8 9<h1>Documentation</h1> 10<div class="content-box"> 11 12<p> 13 The PHP Manual is available online in a selection of languages. 14 Please pick a language from the list below. 15</p> 16 17<p> 18 Note, that many languages are just under translation, and 19 the untranslated parts are still in English. Also some translated 20 parts might be outdated. The translation teams are open to 21 contributions. 22</p> 23</div> 24 25<p> 26 View Online: 27<?php 28 29// List all manual languages viewable online 30$lastlang = end($ACTIVE_ONLINE_LANGUAGES); 31foreach ($ACTIVE_ONLINE_LANGUAGES as $langcode => $langname) { 32 if (!file_exists($_SERVER["DOCUMENT_ROOT"] . "/manual/{$langcode}/index.php")) { 33 continue; 34 } 35 36 // Make preferred language bold 37 if ($langcode == $LANG) { echo "<strong>"; } 38 39 echo '<a href="/manual/' . $langcode . '/">' . $langname . '</a>'; 40 echo ($lastlang != $langname) ? ",\n" : "\n"; 41 42 if ($langcode == $LANG) { echo "</strong>"; } 43} 44 45?> 46</p> 47<p> 48 For downloadable formats, please visit our 49 <a href="download-docs.php">documentation downloads</a> page. 50</p> 51 52<p> 53 Information about php.net URL shortcuts can be found by visiting our 54 <a href="urlhowto.php">Navigation tips & tricks page</a>. 55</p> 56 57<h2 class="content-header">More documentation</h2> 58<ul class="content-box listed"> 59 <li> 60 If you are interested in how the documentation is edited and translated, 61 you should read the <a href="http://doc.php.net/tutorial/">Documentation HOWTO</a>. 62 </li> 63 <li> 64 <a href="http://gtk.php.net/">PHP-GTK related documentation</a> 65 is hosted on the PHP-GTK website. 66 </li> 67 <li> 68 <a href="http://pear.php.net/manual/">Documentation of PEAR and the various 69 packages</a> can be found on a separate server. 70 </li> 71 <li> 72 You can still read a copy of the original <a href="/manual/phpfi2.php">PHP/FI 73 2.0 Manual</a> on our site, which we only host for historical purposes. 74 The same applies to the <a href="/manual/php3.php">PHP 3 Manual</a>. 75 </li> 76 <li> 77 The PHP 4 and PHP 5 documentation has been removed from the 78 manual, but archived versions still exist. For 79 more information, please read <a href="/manual/php4.php"> 80 Documentation for PHP 4</a> and <a href="manual/php5.php"> 81 Documentation for 5</a>, respectively. 82 </li> 83</ul> 84 85<?php site_footer(); 86