cvs: phpweb / urlhowto.php

From: Date: Sun, 11 May 2008 16:38:37 +0000
Subject: cvs: phpweb / urlhowto.php
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-1712@lists.php.net to get a copy of this message
bjori Sun May 11 16:38:37 2008 UTC Modified files: /phpweb urlhowto.php Log: Mention various prefix and suffixes the manual uses http://cvs.php.net/viewvc.cgi/phpweb/urlhowto.php?r1=1.19&r2=1.20&diff_format=u Index: phpweb/urlhowto.php diff -u phpweb/urlhowto.php:1.19 phpweb/urlhowto.php:1.20 --- phpweb/urlhowto.php:1.19 Wed Sep 6 14:12:30 2006 +++ phpweb/urlhowto.php Sun May 11 16:38:37 2008 @@ -1,5 +1,5 @@ <?php -// $Id: urlhowto.php,v 1.19 2006/09/06 14:12:30 nlopess Exp $ +// $Id: urlhowto.php,v 1.20 2008/05/11 16:38:37 bjori Exp $ $_SERVER['BASE_PAGE'] = 'urlhowto.php'; include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc'; @@ -32,10 +32,14 @@ '; site_header("URL Howto"); +function a($href) { + global $MYSITE; + echo '<a href="' . $MYSITE . $href . '">' . $MYSITE . $href . '</a>'; +} ?> -<h1>URL Howto</h1> +<h1>Navigation tips&tricks</h1> <p> When using the PHP.net website, there is even no need to get to @@ -82,6 +86,52 @@ <li>Control structure pages, like <tt><?php echo $MYSITE; ?>while</tt></li> <li>Other language pages, like <tt><?php echo $MYSITE; ?>oop</tt></li> </ul> +<p> + Since there are several manual pages that could potentionally match the query + (extension, class, function name..) you are encouraged to use their prefix/suffix: +</p> +<ul> + <li>Extension <abbr title="Table of Contents">TOC</abbr>: + <tt><?php echo $MYSITE ?>book.extname</tt> + (ex: <?php a("book.dom")?>). + </li> + <li>Extension intro pages: + <tt><?php echo $MYSITE ?>intro.extname</tt> + (ex: <?php a("intro.array") ?>). + </li> + <li>Extension setup <abbr title="Table of Contents">TOC</abbr>: + <tt><?php echo $MYSITE ?>extname.setup</tt> + (ex: <?php a("intl.setup") ?>). + </li> + <li>Extension install chapter: + <tt><?php echo $MYSITE ?>extname.installation</tt> + (ex: <?php a("apc.installation") ?>). + </li> + <li>Extension configuration: + <tt><?php echo $MYSITE ?>extname.configuration</tt> + (ex: <?php a("session.configuration") ?>). + </li> + <li>Extension resources: + <tt><?php echo $MYSITE ?>extname.resources</tt> + (ex: <?php a("mysql.resources") ?>). + </li> + <li>Extension constants: + <tt><?php echo $MYSITE ?>extname.constants</tt> + (ex: <?php a("image.constants") ?>). + </li> + <li>Class synopsis: + <tt><?php echo $MYSITE ?>class.classname</tt> + (ex: <?php a("class.xmlreader") ?>). + </li> + <li>Class method: + <tt><?php echo $MYSITE ?>classname.methodname</tt> + (ex: <?php a("pdo.query") ?>). + </li> + <li>Functions: + <tt><?php echo $MYSITE ?>function.functionname</tt> + (ex: <?php a("function.strpos") ?>). + </li> +</ul> <p> This kind of URL will bring up the manual page in

« previous php.webmaster (#1712) next »