View Full Version : PHP Code appear in IE View Source

08-07-2008, 10:35 PM
When I loaded by php page, i can see the whole php souce code in my Internet Explorer. When I click on "View -> Source", the whole php source code appear.

I'm not sure whether it is a php bugs or IIS, but recently I spent 6 hours on fixing php dynamic library error. So far, I did nothing changes on IIS yet.

Appreaciated anyone can help me on this. Thank You.:confused:

08-08-2008, 02:13 AM
That's your web server program (ISS in this case). I'm not sure exactly how to do it in IIS, but I know you need to have the server associate the .php extension with your php interpreter. I'll bet Microsoft has documentation on this...

Derek Zoolander
08-08-2008, 06:29 PM
Also, this is obvious, but make sure your php tags are properly opened and closed. Check the php.ini file to see if short tags (<? ?>) are enabled if you are using them.