how to use ActiveX in PHP?

可紊 提交于 2019-12-25 02:28:15

问题


What i should do to use ActiveX on php?

I have a few dll, that implements connection to db. But i don't know, how to use them on php. I understand, that i can't write smt like require('mylib.dll'), but what should i do?

So, the first question is: how to "include" dll in php code?

And the second is: How use ActiveX objects in code?

i'll expect smt like this:

$obj = new ActiveXObject("MyActiveX.MyConnection");

回答1:


I guess it is possible using the COM Functions.

I don't know if it works for your specific ActiveX-Controls since they have to implement IDispatch otherwise the "dynamic" access to the methods won't work. And as far as I know you can't import a typelib in PHP.



来源:https://stackoverflow.com/questions/7316694/how-to-use-activex-in-php

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!