php与dll通信? [英] php communication with dll?

查看:98
本文介绍了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,你的形状很好: http://us.php.net/COM

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

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

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

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

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆