Solved

php Compilation Problem with IIS

Posted on 2002-04-21
6
235 Views
Last Modified: 2006-11-17
Hi
I have problem compling php on IIS. I have set my own testing server and placed my php documents in wwwRoot directroy.I have already downloaded the php package required for windows from php.net and i have run the php installer for windows.I am using windows 2000 professional as platform.When i add the localhost/mypage.php at the address bar, it returns complete php document(with full scrip) to the browser and doesnot complie the scripting elements.The browser does not show any message.
php.ini file is in winnt folder.
        Thank you
0
Comment
Question by:ksj786
  • 2
6 Comments
 
LVL 5

Accepted Solution

by:
harwantgrewal earned 50 total points
ID: 6959400
you have also add the isapi mapping for the iis
use the .dll file and in the iis add the mapping I hope you know the mapping of iis by this mapping the iis knows that .php files are executed with this .dll or this .exe

HARRY
0
 
LVL 1

Assisted Solution

by:pmonk
pmonk earned 50 total points
ID: 6970639
Hi ksj786,

I use the SAPI version of PHP - not sure if you need to do these steps but from the sounds of it, you do.

Go into IIS, right-click on your web site and hit "Properties."

Click on the "ISAPI filters" tab.
Click the "Add..." button.
For the filter name type ".php" (without quotes).
For the Executable, browse to the php4isapi.dll file (should be in your winnt/system32 directory).

You'll also need to add PHP to the Application Mappings list:

Click on the Home Directory tab.
Click "Configuration..."
Again, point Executable to the php4isapi.dll file and make the extension ".php".

And that should work.

Peter.
0
 
LVL 1

Expert Comment

by:pmonk
ID: 11662913
Hi Venabili,

From my understanding of harwantgrewal's comment, I explained how to do what he suggested doing (ie, same answer, different levels of detail).

I'm happy to do a split, or I'm happy to take the lot.  :)

Peter.
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

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 …
I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
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 count occurrences of each item in an array.

757 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

21 Experts available now in Live!

Get 1:1 Help Now