By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
463,061 Members | 487 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 463,061 IT Pros & Developers. It's quick & easy.

PHP Code in HTML Page on IIS

P: 2
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
Mar 17 '08 #1
Share this Question
Share on Google+
2 Replies

kenobewan
Expert 2.5K+
P: 4,871
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
Mar 18 '08 #2

P: 2
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.
Mar 18 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.