PHP: URL Howto

2015 年 8 月 9 日5290

Navigation tips&tricks

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://http://www.zjjv.com///.

There are currently three types of URLs you can use this way.

Page shortcuts

If you write in a PHP.net URL (e.g. http://http://www.zjjv.com///get-involved,

first this URL is matched against the PHP.net pages. If there is

a page named get-involved.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://http://www.zjjv.com///preg_match URL. The following pages

are searched for in the manual:

Since there are several manual pages that could potentially match the query

(extension, class, function name..) you are encouraged to use their prefix/suffix:

Extension TOC:

http://http://www.zjjv.com///book.extname

(e.g. http://http://www.zjjv.com///book.dom).

Extension intro pages:

http://http://www.zjjv.com///intro.extname

(e.g. http://http://www.zjjv.com///intro.array).

Extension setup TOC:

http://http://www.zjjv.com///extname.setup

(e.g. http://http://www.zjjv.com///intl.setup).

Extension install chapter:

http://http://www.zjjv.com///extname.installation

(e.g. http://http://www.zjjv.com///apc.installation).

Extension configuration:

http://http://www.zjjv.com///extname.configuration

(e.g. http://http://www.zjjv.com///session.configuration).

Extension resources:

http://http://www.zjjv.com///extname.resources

(e.g. http://http://www.zjjv.com///mysql.resources).

Extension constants:

http://http://www.zjjv.com///extname.constants

(e.g. http://http://www.zjjv.com///image.constants).

Class synopsis:

http://http://www.zjjv.com///class.classname

(e.g. http://http://www.zjjv.com///class.xmlreader).

Class method:

http://http://www.zjjv.com///classname.methodname

(e.g. http://http://www.zjjv.com///pdo.query).

Functions:

http://http://www.zjjv.com///function.functionname

(e.g. http://http://www.zjjv.com///function.strpos).

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://http://www.zjjv.com///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://http://www.zjjv.com///search_for_this.

The exact behaviour of this search is affected by

your own My PHP.net settings.

PHP Developer shortcuts

Changelog information: http://http://www.zjjv.com///changelog

(e.g. latest PHP changelog. php5news = latest PHP 5 NEWS, phptrunknews = latest PHP trunk NEWS)

Bugs: http://http://www.zjjv.com///42

(any numeric value redirects to said bug # at bugs.php.net)

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://http://www.zjjv.com///whatisphp,

http://http://www.zjjv.com///php4news. The latter is an external page

alias, as it points to a file on the Git server, containing information

about changes in PHP. There are also some convenient aliases(e.g.

http://http://www.zjjv.com///de/phpversion which displays the German

manual page for the phpversion() function.

0 0