cvs: phpweb / urlhowto.php usage.php

From: Date: Sat, 02 Aug 2003 16:44:53 +0000
Subject: cvs: phpweb / urlhowto.php usage.php
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-19750@lists.php.net to get a copy of this message
goba Sat Aug 2 12:44:53 2003 EDT Modified files: /phpweb urlhowto.php usage.php Log: Apply the new include methods, add base page values and a few WS modifications to let the printed code be in line with our common stuff...

Index: phpweb/urlhowto.php diff -u phpweb/urlhowto.php:1.14 phpweb/urlhowto.php:1.15 --- phpweb/urlhowto.php:1.14 Sat Jun 14 15:01:00 2003 +++ phpweb/urlhowto.php Sat Aug 2 12:44:53 2003 @@ -1,13 +1,14 @@ <?php -/* $Id: urlhowto.php,v 1.14 2003/06/14 19:01:00 goba Exp $ */ - -include_once './include/prepend.inc'; +// $Id: urlhowto.php,v 1.15 2003/08/02 16:44:53 goba Exp $ +$_SERVER['BASE_PAGE'] = 'urlhowto.php'; +include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc'; $SIDEBAR_DATA=' <h3>URL examples</h3> <p> -We have many kind of URL shortcuts. Here are some -examples you can try out:</p> + We have many kind of URL shortcuts. Here are some + examples you can try out: +</p> <ul> <li><a href="'.$MYSITE.'echo">'.$MYSITE.'echo</a></li> <li><a href="'.$MYSITE.'it/echo">'.$MYSITE.'it/echo</a></li> @@ -18,15 +19,15 @@ <h3>Quick reference tips</h3> <p> -You can find <a href="tips.php">more -quick reference tips</a> on our site. + You can find <a href="/tips.php">more + quick reference tips</a> on our site. </p> <h3>My PHP.net</h3> <p> -URL shortcut behaviour is greatly influenced by -your <a href="/my.php">language preferences</a> -detected and set. + URL shortcut behaviour is greatly influenced by + your <a href="/my.php">language preferences</a> + detected and set. </p> '; @@ -37,41 +38,41 @@ <h1>URL Howto</h1> <p> -When using the PHP.net website, there is even no need to get to -a search box to access the content you would like to see quickly. -You can use short PHP.net URLs to access pages directly. + When using the PHP.net website, there is even no need to get to + a search box to access the content you would like to see quickly. + You can use short PHP.net URLs to access pages directly. </p> <p> -Note, that these shortcuts are expected to work on all mirror -sites, not just at the main site. If you find that some of these -shortcuts are not working on your mirror site, please report them -as a "PHP.net Website Problem" at -<a href="http://bugs.php.net/">http://bugs.php.net/</a>. + Note, that these shortcuts are expected to work on all mirror + sites, not just at the main site. If you find that some of these + shortcuts are not working on your mirror site, please report them + as a "PHP.net Website Problem" at + <a href="http://bugs.php.net/">http://bugs.php.net/</a>. </p> <p> -There are currently three types of URLs you can use this way. + There are currently three types of URLs you can use this way. </p> <h2>Page shortcuts</h2> <p> -If you write in a PHP.net URL, like <tt><?php echo $MYSITE; ?>links</tt>, -first this URL is matched against the PHP.net pages. If there is -a page named <tt>links.php</tt>, then you'll get that page -immediately. This type of shortcut makes easy to type in a link -in an IRC conversation or mailing list message. If the script -finds no page with this name, it tries to find a manual page. + If you write in a PHP.net URL, like <tt><?php echo $MYSITE; ?>links</tt>, + first this URL is matched against the PHP.net pages. If there is + a page named <tt>links.php</tt>, then you'll get that page + immediately. This type of shortcut makes easy to type in a link + in an IRC conversation or mailing list message. If the script + finds no page with this name, it tries to find a manual page. </p> <h2>Manual shortcuts</h2> <p> -If your URL can't be matched with a page name, a manual page -is searched for your query. This is the case for the -<tt><?php echo $MYSITE; ?>preg_match</tt> URL. The following pages -are searched for in the manual:</p> + If your URL can't be matched with a page name, a manual page + is searched for your query. This is the case for the + <tt><?php echo $MYSITE; ?>preg_match</tt> URL. The following pages + are searched for in the manual:</p> <ul> <li>Chapter pages, like <tt><?php echo $MYSITE; ?>installation</tt></li> <li>Reference pages, like <tt><?php echo $MYSITE; ?>imap</tt></li> @@ -83,51 +84,54 @@ </ul> <p> -This kind of URL will bring up the manual page in -<a href="/my.php">your preferred language</a>. You can -always override this setting by explicitly providing -the language you want to get to. You can embed the language -in the URL before the manual search term. -<tt><?php echo $MYSITE; ?>hu/sort</tt> will bring up -the Hungarian manual page for sort() for example. + This kind of URL will bring up the manual page in + <a href="/my.php">your preferred language</a>. You can + always override this setting by explicitly providing + the language you want to get to. You can embed the language + in the URL before the manual search term. + <tt><?php echo $MYSITE; ?>hu/sort</tt> will bring up + the Hungarian manual page for sort() for example. </p> <h2>Search shortcuts</h2> <p> -At last, if there is no PHP page, and there is no manual -page matching your query, a search is issued on the site with -the query you typed into the URL. An example of this kind -of URL is <tt><?php echo $MYSITE; ?>search_for_this</tt>. + At last, if there is no PHP page, and there is no manual + page matching your query, a search is issued on the site with + the query you typed into the URL. An example of this kind + of URL is <tt><?php echo $MYSITE; ?>search_for_this</tt>. + The exact behaviour of this search is affected by + <a href="/my.php">your own My PHP.net settings</a>. </p> <h2>Even smarter tricks</h2> <p> -We also have shortcut aliases to access some resources more quickly, -and with a nice URL. Aliases are translated to their relevant shortcuts -before the first step (PHP page search) mentioned above. Some examples -of shortcut aliases: <tt><?php echo $MYSITE; ?>whatisphp</tt>, -<tt><?php echo $MYSITE; ?>php4news</tt>. The latter is an external page -alias, as it points to a file on the CVS server, containing information -about changes in PHP. There are also some convinient aliases, like -<tt><?php echo $MYSITE; ?>de/books</tt> which displays the German -PHP books' list. + We also have shortcut aliases to access some resources more quickly, + and with a nice URL. Aliases are translated to their relevant shortcuts + before the first step (PHP page search) mentioned above. Some examples + of shortcut aliases: <tt><?php echo $MYSITE; ?>whatisphp</tt>, + <tt><?php echo $MYSITE; ?>php4news</tt>. The latter is an external page + alias, as it points to a file on the CVS server, containing information + about changes in PHP. There are also some convinient aliases, like + <tt><?php echo $MYSITE; ?>de/books</tt> which displays the German + PHP books' list. </p> <h1>Get it on your site</h1> <p> -What enables PHP.net to have this feature is a combination of some -ErrorDocument Apache settings, redirecting the browser to another page -in case of an "Error 401/3/4" and a little search script that looks up -page names or functions names in the manual corresponding to what -you searched for in <tt><?php echo $MYSITE; ?>search_for_this</tt>. -We also have a general language selection method. + What enables PHP.net to have this feature is a combination of some + ErrorDocument Apache settings, redirecting the browser to another page + in case of an "Error 401/3/4" and a little search script that looks up + page names or functions names in the manual corresponding to what + you searched for in <tt><?php echo $MYSITE; ?>search_for_this</tt>. + We also have a general language selection method. </p> <p> -Everything behind this feature is available here:</p> + Everything behind this feature is available here: +</p> <ul> <li><a href="/mirroring.php">Mirroring instructions</a> (see the three ErrorDocument settings)</li> <li><a href="http://cvs.php.net/co.php/phpweb/include/langchooser.inc">http://cvs.php.net/co.php/phpweb/include/langchooser.inc</a></li> Index: phpweb/usage.php diff -u phpweb/usage.php:1.49 phpweb/usage.php:1.50 --- phpweb/usage.php:1.49 Fri Aug 1 22:46:37 2003 +++ phpweb/usage.php Sat Aug 2 12:44:53 2003 @@ -1,25 +1,27 @@ <?php -include "./include/prepend.inc"; +// $Id: usage.php,v 1.50 2003/08/02 16:44:53 goba Exp $ +$_SERVER['BASE_PAGE'] = 'usage.php'; +include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc'; commonHeader("PHP Usage Stats"); ?> <h1>Usage Stats for August 2003</h1> <p> -PHP: 13,375,956 Domains, 1,299,371 IP Addresses<br> -Source: <a href="http://www.netcraft.com/Survey/">Netcraft</a><br /> + PHP: 13,375,956 Domains, 1,299,371 IP Addresses<br> + Source: <a href="http://www.netcraft.com/Survey/">Netcraft</a><br /> </p> <p> -<?php echo print_image("stats/phpstats-200308.png", "Graph"); ?> + <?php echo print_image("stats/phpstats-200308.png", "Graph"); ?> </p> <p> -You can also see how popular PHP is relative to other Apache modules -at <?php print_link("http://www.securityspace.com/s_survey/", "SecuritySpace's Web Survey"); ?>. -Spoiler: PHP is the most popular. There is also a -<a href="http://www.tiobe.com/tpci.htm">Programming Community Index</a> -provided by TIOBE. + You can also see how popular PHP is relative to other Apache modules + at <a href="http://www.securityspace.com/s_survey/">SecuritySpace's + Web Survey</a>. Spoiler: PHP is the most popular. There is also a + <a href="http://www.tiobe.com/tpci.htm">Programming Community Index</a> + provided by TIOBE. </p> <?php commonFooter(); ?>
« previous php.mirrors (#19750) next »