Page 1 of 1

PHP displaying as code in browser

Posted: Mon Apr 12, 2010 6:13 pm
by CGA_bot
Hey everybody! :P I'm new with PHP and MySQL and the whole deal and... I'm having some trouble...actually a lot of trouble...actually...it's a brutal struggle between man and machine. Here's what's happening: the server is my local machine. I'm running OS X 10.5.8. The problem is as the post title says. PHP was working fine before I installed GD yesterday. Now it seems something has gone terribly wrong. I'm kind of out of my element here, so I really hope you guys can help me troubleshoot this. I don't even know where to begin.

Btw, I apologize if this is the wrong place to post this. I wasn't sure which one to post in.

Re: PHP displaying as code in browser

Posted: Tue Apr 13, 2010 1:20 am
by omniuni
Hm, "Installation and Configuration" is probably a better option, but anyway, check your server's registered MIME types, and make sure it still knows to treat *.php with the PHP extension, rather than delivering it as plain text.