I feel like an idiot because I can't figure this out. For years now I have been coding my html/php right on the server. I finally downloaded komodo and absolutely love the html editor.

However, most of my pages have a .php extension (usually so I can use an include to include the header/footer, etc.). If I choose a php file in Komodo it won't preview the file and if I try to view the file in Chrome it just outputs as html text.

I am assuming I have to install php or something. I am using a Mac with Mountain Lion. I've tried following the instructions to install php or to change my path to my php.ini and I am totally lost.

Can anyone help?