PHP Code in HTML Page on IIS

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sirius
    New Member
    • Mar 2008
    • 2

    #1

    PHP Code in HTML Page on IIS

    Is is possible to execute php code inside an html page on IIS. ? I have PHP running and my scripts with .php extention execute fine, but I can't seem to get my php code to run when embeded inside an .html file. On unix/apache , I can overcome this with a .htaccess file, but am not sure how to make it work on windows/IIS.

    using Win Server 2003, IIS, PHP5

    thanks in advance
  • kenobewan
    Recognized Expert Specialist
    • Dec 2006
    • 4871

    #2
    Originally posted by sirius
    Is is possible to execute php code inside an html page on IIS. ? I have PHP running and my scripts with .php extention execute fine, but I can't seem to get my php code to run when embeded inside an .html file. On unix/apache , I can overcome this with a .htaccess file, but am not sure how to make it work on windows/IIS.

    using Win Server 2003, IIS, PHP5

    thanks in advance
    You don't say which version of IIS. Have a look here:
    PHP on IIS

    Comment

    • sirius
      New Member
      • Mar 2008
      • 2

      #3
      I don't know how to tell which version of IIS. There is no Help->About on the file menu in the IIS console. By the way, I said it was on a Server 2003 machine, actually, it's a Server 2000 and it is whatever the default version of IIS that came with it. I think IIS must not be able to parse php code that has been embedded inside of an html file since there isn't much of anything to be found on the web for it so I will probably move to apache. Thanks anyway.

      Comment

      Working...