Link to home
Start Free TrialLog in
Avatar of brettr
brettr

asked on

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?
Avatar of LinuxNubb
LinuxNubb
Flag of United States of America image

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.  
Avatar of brettr
brettr

ASKER

No help.  From what I've read you need to add a .htaccess file, which is Apache.  Not IIS.
ASKER CERTIFIED SOLUTION
Avatar of LinuxNubb
LinuxNubb
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of brettr

ASKER

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?
yes, just search google for it and download and install
Avatar of brettr

ASKER

Ok.  If you can figure it out, I'll award points.   If you can't, maybe some body else will.
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
Avatar of brettr

ASKER

Solution is to add a module mapping using FAST CGI.  Put the path in quotes.  Use extension of "*.html" (without quotes).
Avatar of brettr

ASKER

The solution isn't in there.  I just pieced it together reading parts of other solutions.