samarudge 16 Posting Whiz

Hi,
I am running Apache 2.2 with PHP5. All my files are written in PHP so they have the .php extension however I want to remove this extension in the same way google do (http://somurl.com/file), I can do this leaving the trailing slash on (http://someurl.com/file/) but I want to remove this end slash, how would I do this.
Regards,
Sam Rudge