Solved

Can I execute PHP in HTML on Windows/IIS?

Posted on 2009-04-11
9
351 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
  • 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
 

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
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 
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 108

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

760 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now