php.net manual quick_links
Posted: Thu May 15, 2003 6:18 am
in reference to
http://www.devnetwork.net/forums/viewtopic.php?t=8778
Some people may know that over at sitepoint you can type [google]search_term[/google] and the forum auto decided the link to googles search facility.
Why not do that for the php.net manual here?
[manual]getimagesize[/manual] => http://www.php.net/getimagesize
Guess the regex would be
$input_string = preg_replace("/\[manual\](.+?)\[\/manual\]/is","<a href=\"http://www.php.net/$1\" target=\"_blank\">$1</a>",$input_string);
dunno whether the phpBB manipulates the strings on input or output though - would obviously mean a code hack.
could even abbreviate it to [man]....[/man] for the *nixers
http://www.devnetwork.net/forums/viewtopic.php?t=8778
Some people may know that over at sitepoint you can type [google]search_term[/google] and the forum auto decided the link to googles search facility.
Why not do that for the php.net manual here?
[manual]getimagesize[/manual] => http://www.php.net/getimagesize
Guess the regex would be
$input_string = preg_replace("/\[manual\](.+?)\[\/manual\]/is","<a href=\"http://www.php.net/$1\" target=\"_blank\">$1</a>",$input_string);
dunno whether the phpBB manipulates the strings on input or output though - would obviously mean a code hack.
could even abbreviate it to [man]....[/man] for the *nixers