[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 366
  • Last Modified:

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?
0
brettr
Asked:
brettr
  • 5
  • 3
1 Solution
 
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: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 5
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now