Integrate ASP.NET (C#) into PHP
I开发者_开发百科s it possible to call a C# method and asp.net page through php?
Within a PHP generated page you can definitely link to a ASP.NET page.
If you want to call a C# method within a PHP script, I would suggest you using a RESTful API or SOAP to invoke C#'s method remotely. Your ASP.NET application server will host the WebService, and your PHP script will be the client.
I'm not exactly sure what your scenario is, but you may check out Phalanger.
Phalanger is an open-source compiler of PHP to .NET which also adds some extensions to PHP that make it possible to call .NET methods (and similarly, you can call compiled PHP from C#).
I'm not sure exactly what you mean, however it is possible to call page methods which have to be called via POST
with content-type = "application/json; charset=utf-8". There are jQuery tactics to do this from a web page.
精彩评论