Page 1 of 1

php code returns php code in to the browser

Posted: Wed Mar 17, 2010 1:21 am
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:

Re: php code returns php code in to the browser

Posted: Wed Mar 17, 2010 1:47 am
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

Re: php code returns php code in to the browser

Posted: Wed Mar 17, 2010 2:10 am
by amargharat
My server is using nginx

Re: php code returns php code in to the browser

Posted: Wed Mar 17, 2010 2:26 pm
by Christopher
Then check the nginx manual. ;)