Solved

Can I execute PHP in HTML on Windows/IIS?

Posted on 2009-04-11
9
357 Views
Last Modified: 2013-12-13
Is it possible to execute inline PHP

<?php /*do something*/ ?>

on a windows box?  How is that done?
0
Comment
Question by:brettr
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 3
9 Comments
 
LVL 9

Expert Comment

by:LinuxNubb
ID: 24123190
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
 

Author Comment

by:brettr
ID: 24123251
No help.  From what I've read you need to add a .htaccess file, which is Apache.  Not IIS.
0
 
LVL 9

Accepted Solution

by:
LinuxNubb earned 500 total points
ID: 24123261
0
Why You Need a DevOps Toolchain

IT needs to deliver services with more agility and velocity. IT must roll out application features and innovations faster to keep up with customer demands, which is where a DevOps toolchain steps in. View the infographic to see why you need a DevOps toolchain.

 

Author Comment

by:brettr
ID: 24123892
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
 
LVL 9

Expert Comment

by:LinuxNubb
ID: 24124112
yes, just search google for it and download and install
0
 

Author Comment

by:brettr
ID: 24124251
Ok.  If you can figure it out, I'll award points.   If you can't, maybe some body else will.
0
 
LVL 110

Expert Comment

by:Ray Paseur
ID: 24124262
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
 

Author Closing Comment

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

Author Comment

by:brettr
ID: 24124270
The solution isn't in there.  I just pieced it together reading parts of other solutions.
0

Featured Post

Forrester Webinar: xMatters Delivers 261% ROI

Guest speaker Dean Davison, Forrester Principal Consultant, explains how a Fortune 500 communication company using xMatters found these results: Achieved a 261% ROI, Experienced $753,280 in net present value benefits over 3 years and Reduced MTTR by 91% for tier 1 incidents.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Prologue It is often required to host multiple websites on a single instance of IIS, mostly in development environments instead of on production servers. I am sure it is not much a preferred solution on production servers but this is at least a pos…
If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question