English 中文(简体)
PHP网页上的电话网功能
原标题:Call .net function from PHP page
  • 时间:2010-05-26 03:29:49
  •  标签:
  • .net
  • php
  • com

我的这项职能载于:

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

我希望能够从PHP网页上提一下。 任何想法如何?

Edit: 看见网址文件, http://www.php.net/manual/en/class.dotnet.php, 我认为这是可能的。 但是,我可以制定法典,以找到这一损失,即使有强烈的称呼。 dll文档与php网页的相容。

最佳回答

如果您重新登上Windows,本条可能有助于:

PHP和NET

在另一个平台上,您可能利用Phalanger等内容来查阅。 该网络通过PHP运行时间。

问题回答

有若干办法可以包括: 您的PHP安装中的NET DLs(已备有充分文件),其中多数非常复杂,而且往往比你作为网络服务器锁定电流时更麻烦。

最好的解决办法是,书写你可以在全球导航卫星系统服务器上部署的网络服务。 这使你免于痛苦。 您的《公共卫生法》中的“网络”依赖性,因此,如果需要,将你的申请迁移到另一个环境将非常容易。 在视频演播室建立网络服务是一种缩略语——刚刚开始一个新的网络服务项目,你的DLLs和VS自动产生一个WSDL,你可以利用PHP的SOAP功能。

去年我处于同样的情况,我探讨了两种选择——网络服务无疑是更好和更灵活的选择。





相关问题
Manually implementing high performance algorithms in .NET

As a learning experience I recently tried implementing Quicksort with 3 way partitioning in C#. Apart from needing to add an extra range check on the left/right variables before the recursive call, ...

Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

How do I compare two decimals to 10 decimal places?

I m using decimal type (.net), and I want to see if two numbers are equal. But I only want to be accurate to 10 decimal places. For example take these three numbers. I want them all to be equal. 0....

Exception practices when creating a SynchronizationContext?

I m creating an STA version of the SynchronizationContext for use in Windows Workflow 4.0. I m wondering what to do about exceptions when Post-ing callbacks. The SynchronizationContext can be used ...

Show running instance in single instance application

I am building an application with C#. I managed to turn this into a single instance application by checking if the same process is already running. Process[] pname = Process.GetProcessesByName("...

How to combine DataTrigger and EventTrigger?

NOTE I have asked the related question (with an accepted answer): How to combine DataTrigger and Trigger? I think I need to combine an EventTrigger and a DataTrigger to achieve what I m after: when ...

热门标签