php code returns php code in to the browser

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
amargharat
Forum Commoner
Posts: 82
Joined: Wed Sep 16, 2009 2:43 am
Location: Mumbai, India
Contact:

php code returns php code in to the browser

Post by amargharat »

I don't know why but i am having problem with php code and never had before.
Php code returns php code into the browser

PLs, Help. :banghead:
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: php code returns php code in to the browser

Post by Christopher »

It sounds like your webserver is not configured correctly. Check to make sure there is a "SetHandler application/x-httpd-php" (or AddType) line in your webserver configuration.

http://www.php.net/manual/en/install.unix.apache2.php
(#10850)
amargharat
Forum Commoner
Posts: 82
Joined: Wed Sep 16, 2009 2:43 am
Location: Mumbai, India
Contact:

Re: php code returns php code in to the browser

Post by amargharat »

My server is using nginx
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: php code returns php code in to the browser

Post by Christopher »

Then check the nginx manual. ;)
(#10850)
Post Reply