Solved

php Compilation Problem with IIS

Posted on 2002-04-21
6
240 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
[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
  • 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:Peter Monk
Peter Monk 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:Peter Monk
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

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

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 …
Generating table dynamically is the most common issue faced by php developers.... So it seems there is a need of an article that explains the basic concept of generating tables dynamically. It just requires a basic knowledge of html and little maths…
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…
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.

695 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