本文介绍了php与dll通信?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要使用PHP传递数据(在这种情况下只需一个id)到自定义dll。你可以直接在php工作吗?在我不确定它是如何工作之前,从来没有使用过dll。它与Web服务或rpc类似?

I need pass data (in this case just a single id) to a custom dll using php. Can you work directly with a dll in php? Having never worked with a dll before I'm not really sure how it works. Is it similar in nature to a web service or rpc?

推荐答案

由于这是一个自定义DLL,也许你会href =http://us.php.net/manual/en/internals2.php =nofollow>考虑进行PHP扩展?

Since this is a custom DLL, perhaps you'd consider making a PHP extension?

或者,PHP支持COM。如果你可以制作一个COM DLL,你的形状很好:

Alternatively, PHP supports COM. If you can make a COM DLL, you're in good shape: http://us.php.net/COM

最后,是否可以与?如果是这样,可以使用 exec()来调用它。

Finally, is it something that can be used with rundll32? If so, you could call it with exec().

这篇关于php与dll通信?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-02 18:21