I have this function in .net code:
public class StringGenerator
{
public static string GenerateString(string hash)
{
return hash.GetHashCode();
}
}
I want to be able to call this from PHP page. Any idea how?
Edit: looking in php documentation, http://www.php.net/manual/en/class.dotnet.php, I see that it possible. but I can’t code the code to find this dll, even with strongly named dll. the dll file is in the same folder as the php page.
If you’re on Windows, this article might help:
PHP and .NET
On another platform you could possibly use something like Phalanger to get access to the .NET runtime through PHP.