Wouldn't using a mod_rewrite in apache be the way to go with this?
That said, I know you can use it to redirect foo to foo.php, but I'm not sure if you can use it to hide .php
... or maybe you can? Take a look at: http://stackoverflow.com/questions/1992183/how-to-hide-the-html-extension-with-apache-mod-rewrite
Tom Melly, pm (at) cursingmaggot (stop) co (stop) uk