开发者

is there any way that we can integrate asp.net with php.?

I know that ASP.NET Application can run with PHP application on IIS through fastCGI, but is there any way to integrate both application, so that i can utilize codes from php and Asp.net working together.

during my research I found a third party tool known as Phalanger that converts the php code into MSIL and runs with .net application but the problem what i have is that it is in beta version and sessions_开发者_StackOverflow社区start() function is not running properly. Any other good ideas??? if so please let me know.


It sounds like you are looking to have a single document which contains both the language types running side by side.

I do not believe it would be possible using your standard resources from php.net and Microsoft. As you've mentioned, there may be tools to convert the code but the success may vary (I'm unable to advise of any myself).

In IIS you'd configure an Application Extensions against file extensions. For example .ASPX against aspnet_isapi.dll or .PHP against php5_isapi.dll.

You would need to have the same application extension in twice against two ISAPI extensions and IIS will not allow you to do this.

As for Apache, as it's text based it would obviously allow for setting this but will likely not work as desired.

Even if this was to work I would also consider it a bad idea as you'd be likely encounter other problems down the line.

I would suggest you look at an cart application built in ASP.NET rather than trying to merge two different languages together that are typically not built for this function.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜