PDA

View Full Version : load .php scripts with asp


sogox
04-20-2004, 02:16 PM
hello , i m writting an asp project and i have to include some .php
scripts .
<%server.execute("something.php")%>
or
<--#include("something.php")%>
methods dont work.

In the other hand , it is possible to load asp scripts writing in php.
That means <? include("something.php") ?> method works.

Any ideas?

glenngv
04-22-2004, 07:40 AM
You can't do that. IIS can't process php scripts.

Roelf
04-22-2004, 09:09 AM
If you install php, you can configure iis to execute php-scripts. After done that, the server.execute method should work

- Install PHP 4.0 on IIS
- Associate the .php extension in IIS with the Php.exe CGI application. To do this, follow these steps:
- Open the IIS Manager.
- Open the property sheet for the Web site to which you want to add the PHP extension.
- On the Home Directory tab, click Configuration.
- Under Application Mappings, click Add.
- For Executable, type the path to Php.exe (for example, C:\Php\Php.exe).
- For Extension box, type .php and click OK.
- Save your changes, and then close the IIS Manager.

oracleguy
04-22-2004, 08:06 PM
Actually the PHP installer should be able to configure IIS for you. I'm running the latest PHP version on IIS 5.1 at home.