[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 364
  • 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 Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

 
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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

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