Published January 30th, 2005 by Jim O'Halloran

PHP.net Search

For quite a while now I’ve taken advantage of the fact that you can search php.net just by adding whatever you want to search for onto the end of the URL (e.g. http://au.php.net/array_keys). In fact whenever I’m working with PHP I usually have a tab open to php.net just for this purpose.

Generally this works reasonably well, but occasionally you close your tab or mistype something and its a bit messy. I use the links toolbar in Firefox heavily, and the bookmarklets that I’ve got for MT and FoF are really useful. So I sat down and created a bookmarklet to do a search of PHP.net. Drag this link onto your links toolbar. Then whenever you click on it you’ll be prompted for a search term, and then it’ll build the appropriate URL and take you straight there.

The little bit of javascript is as follows:

javascript:top.location ='http://au.php.net/'+prompt('Search PHP.net for:');

You might want to change the “au.php.net” to point to your local mirror, but otherwise it works well. I haven’t teasted it in IE, but it should work.


0 Responses to “PHP.net Search”

Feed for this Entry
  1. No Comments

Leave a Reply

XHTML: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>