[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Can I execute PHP in HTML on Windows/IIS?

Posted on 2009-04-11
9
Medium Priority
?
362 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 1500 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 111

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Suggested Courses

650 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