我在 .net 代码中有这个功能:
public class StringGenerator
{
public static string GenerateString(string hash)
{
return hash.GetHashCode();
}
}
我希望能够从 PHP 页面调用它。知道怎么做吗?
编辑: 查看 php 文档,http://www.php.net/manual/en/class.dotnet.php ,我认为这是可能的。但我无法编写代码来找到这个 dll,即使是强命名的 dll。 dll 文件与 php 页面位于同一文件夹中。
最佳答案
关于.net - 从 PHP 页面调用 .net 函数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2909946/