PHP: URL Howto
[/] downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net s earch for in the function list all php.net sites this mirror only online documentation bug database Site News Archive All Changelogs just pear.php.net just pecl.php.net just talks.php.net general mailing list developer mailing list documentation mailing list URL examples We have many kind of URL shortcuts. Here are some examples you can try out: /echo /it/echo /imap /downloads /searchterm Quick reference tips You can find more quick reference tips on our site. My PHP.net URL shortcut behaviour is greatly influenced by your language preferences detected and set. URL Howto 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. 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 http://bugs.php.net/ . There are currently three types of URLs you can use this way. Page shortcuts If you write in a PHP.net URL, like http://ua2.php.net/links , first this URL is matched against the PHP.net pages. If there is a page named links.php , 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. Manual shortcuts 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 http://ua2.php.net/preg_match URL. The following pages are searched for in the manual: Chapter pages, like http://ua2.php.net/installation Reference pages, like http://ua2.php.net/imap Function pages, like http://ua2.php.net/join Class pages, like http://ua2.php.net/dir Feature pages, like http://ua2.php.net/safe_mode Control structure pages, like http://ua2.php.net/while Other language pages, like http://ua2.php.net/oop This kind of URL will bring up the manual page in your preferred language . 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. http://ua2.php.net/hu/sort will bring up the Hungarian manual page for sort() for example. Search shortcuts 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 http://ua2.php.net/search_for_this . The exact behaviour of this search is affected by your own My PHP.net settings . Even smarter tricks 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: http://ua2.php.net/whatisphp , http://ua2.php.net/php4news . 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 http://ua2.php.net/de/phpversion which displays the German manual page for the phpversion() function. Get it on your site 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 http://ua2.php.net/search_for_this . We also have a general language selection method. Everything behind this feature is available here: Mirroring instructions (see the three ErrorDocument settings) include/langchooser.inc error.php include/manual-lookup.inc search.php show source | credits | sitemap | contact | advertising | mirror sites Copyright © 2001-2006 The PHP Group All rights reserved. This mirror generously provided by: Max Khaikin Last updated: Tue Oct 10 03:33:03 2006 EEST