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 ...
Cuireadh roinnt torthaí i bhfolach toisc go bhféadfadh siad a bheith dorochtana duit
Taispeáin torthaí dorochtana