在IIS 7上运行的内部ASP.NET MVC 4应用PHP文件?
我有一个只有PHP API一次支付网关。是否有可能上运行的应用程序我的IIS服务器中该脚本将运行MVC4?
I have one payment gateway that has only php api. Is it possible to run that script inside my IIS server on application that will run MVC4?
当我加入 1.PHP
我的根文件夹,并尝试进行导航它显示 HTTP错误404.3 - 未找到
When I add 1.php
to my root folder and try to navigate it it shows HTTP Error 404.3 - Not Found
.
您必须与IIS服务器上的FastCGI安装PHP。这应该将其配置为支持PHP扩展。它可以与 http://www.microsoft.com/web/downloads/platform安装。 ASPX
You have to install PHP with FastCGI on the IIS server. That should configure it to support .php extension. It can be installed with http://www.microsoft.com/web/downloads/platform.aspx
接下来,您必须配置路由忽略请求该页面(否则它会假设这个名字实际上是一个控制器的名称)。
Next you have to configure the routing to ignore requests to this page (otherwise it will assume that the name is actually a name of a controller).