Solved

Can I execute PHP in HTML on Windows/IIS?

Posted on 2009-04-11
9
359 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
NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

 

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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
The viewer will learn how to count occurrences of each item in an array.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

724 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