Solved

Can I execute PHP in HTML on Windows/IIS?

Posted on 2009-04-11
9
352 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
Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

 
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Keep getting 503 on Curl request 6 31
php refresh button on the browser 2 36
Should I use subdomains or addon domains? 3 36
Checking if varaible is empty 6 31
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.
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 look for a specific file type in a local or remote server directory using PHP.
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 …

920 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

14 Experts available now in Live!

Get 1:1 Help Now