Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Aug 2008
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    PHP Code appear in IE View Source

    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.

  • #2
    Regular Coder
    Join Date
    May 2008
    Location
    Ohio
    Posts
    231
    Thanks
    3
    Thanked 21 Times in 21 Posts
    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...
    zok@zoklet:~$ whereis zok
    zok: http://zoklet.net | http://zoklet.net/otg | /derzok/at/gmail/dot/com

  • #3
    New Coder
    Join Date
    Apr 2007
    Posts
    38
    Thanks
    3
    Thanked 0 Times in 0 Posts
    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.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •