Can I execute PHP in HTML on Windows/IIS?

Is it possible to execute inline PHP

<?php /*do something*/ ?>

on a windows box?  How is that done?
brettrAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
LinuxNubbCommented:
Brettr, there are a billion articles on how to do this.  Do a simple search in google for php in windows and take your pick.  
0
 
brettrAuthor Commented:
No help.  From what I've read you need to add a .htaccess file, which is Apache.  Not IIS.
0
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
brettrAuthor Commented:
I'm using the first link and have installed the PHP MSI.  However, there is no php5isapi.dll, which I need to tell IIS about so it can then execute PHP in an HTML file.  Any ideas?
0
 
LinuxNubbCommented:
yes, just search google for it and download and install
0
 
brettrAuthor Commented:
Ok.  If you can figure it out, I'll award points.   If you can't, maybe some body else will.
0
 
Ray PaseurCommented:
Not sure this will help, but you don't want to overlook the PHP resources on this subject:
http://us3.php.net/install.windows

Best, ~Ray
0
 
brettrAuthor Commented:
Solution is to add a module mapping using FAST CGI.  Put the path in quotes.  Use extension of "*.html" (without quotes).
0
 
brettrAuthor Commented:
The solution isn't in there.  I just pieced it together reading parts of other solutions.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.