If you are serving your php files though OSX's built in apache server you'll need to find apache's httpd.config file and edit it to un-comment anything that references .php, (I think there are two ...
How many times have you set up a web server with Apache 2 only to find out that when you attempt to view a page with a .php extension, the page either attempts to save onto the local drive or it ...