/    Sign up×
Community /Pin to ProfileBookmark

Can’t preview mixed php/html files in Komodo

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?

to post a comment
PHP

3 Comments(s)

Copy linkTweet thisAlerts:
@jazzmasterkcMay 06.2013 — A browser doesn't know what to do with php because it is not processed in the browser, only on the server. Set up a local host and then try it.
Copy linkTweet thisAlerts:
@DrMarieauthorMay 06.2013 — Thank you. That's exactly the part I don't understand though. How do I set up a local host? Thanks.
Copy linkTweet thisAlerts:
@jazzmasterkcMay 07.2013 — install these packages:

php

php-mysql

phpmyadmin

I believe that should be enough to get you started.. for server wise.. or here is a link that should be pretty much the same for all platforms:

https://help.ubuntu.com/community/ApacheMySQLPHP

DO NOT depend on the LAMP server, stick to having each package always up to date and under the same manager.
×

Success!

Help @DrMarie spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.15,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...