简体   繁体   中英

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_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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM