开发者

how to use ActiveX in PHP?

开发者 https://www.devze.com 2023-04-02 10:59 出处:网络
What i should do to use ActiveX on php? I have a few dll, that implements connection to db. Bu开发者_JAVA技巧t i don\'t know, how to use them on php.

What i should do to use ActiveX on php?

I have a few dll, that implements connection to db. Bu开发者_JAVA技巧t 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");


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消