Call the .net function from the PHP page

I have this function in .net code:

public class StringGenerator
{
    public static string GenerateString(string hash)
    {
        return hash.GetHashCode();
    }
}

I want this to be able to be called on a PHP page. Any idea how?

Edit: in the php documentation, http://www.php.net/manual/en/class.dotnet.php , I see that this is possible. but I can not encode the code to find this dll, even with the strongly named dll. The dll file is in the same folder as the php page.

+3
source share
3 answers

If you are running Windows, this article may help:

PHP and .NET

On another platform, you can use something like Phalanger to access the .NET runtime through PHP.

+2

.NET DLL PHP ( ), , , , , IIS -.

-, IIS. .NET PHP-, , . - Visual Studio - - -, DLL, VS WSDL, PHP SOAP.

, - - , , .

+1

Source: https://habr.com/ru/post/1747117/


All Articles