PHP到COM对象 [英] PHP to a COM object

查看:92
本文介绍了PHP到COM对象的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,


我正在尝试使用PHP脚本中的(远程)COM对象(4.4,服务器有

apache2 win32) 。


基础知识似乎有效:我实例化COM对象($ o = new COM" ..."),

然后我用两个对象的方法进行身份验证。与此同时,名为ProjectConnected的

属性从0传递到1.所以我认为

对象是正确实现的,并且连接正常。


但是现在,我正在对我的对象做一个var_dump,我得到了这个:

object(COM)(1){

[0] =类型(COM)的资源(127)

}


Arg。我不明白这一点,PHP手册也没有帮助。我希望获得一个方法/属性列表
。至少我使用两个来b / b
验证。


var_dump($ obj [0])返回null。

可能有人向我解释一下这个?


谢谢,

-

Alex

[JDR] Visitez Extremia,un monde gratuit et en francais pour D& D et

autres jeux de role。
www.extremia.org

Hello,

I''m trying to use a (remote) COM object from a PHP script (4.4, server has
apache2 win32).

The basics seem to work : I instantiate the COM object ($o = new COM"..."),
then I use two of the objects methods to authenticate. In the meantime a
property called "ProjectConnected", passes from 0 to 1. So I think the
object is correctly instanciated and the connection works.

But now, I''m doing a var_dump on my object and I get this :
object(COM)(1) {
[0]=resource(127) of type (COM)
}

Arg. I don''t understand this and the PHP manual doesnt help either. I would
have expected to get a list of methods/properties. At least the two I use to
authenticate.

var_dump ($obj[0]) returns null.
Could someone explain me more about this ?

Thanks,
--
Alex
[JDR] Visitez Extremia, un monde gratuit et en francais pour D&D et
autres jeux de role.
www.extremia.org

推荐答案

o = new COM" ..."),

然后我使用两个对象方法进行身份验证。与此同时,名为ProjectConnected的

属性从0传递到1.所以我认为

对象是正确实现的,并且连接正常。


但是现在,我正在对我的对象做一个var_dump,我得到了这个:

object(COM)(1){

[0] =类型(COM)的资源(127)

}


Arg。我不明白这一点,PHP手册也没有帮助。我希望获得一个方法/属性列表
。至少我使用两个来验证。
var_dump(
o = new COM"..."),
then I use two of the objects methods to authenticate. In the meantime a
property called "ProjectConnected", passes from 0 to 1. So I think the
object is correctly instanciated and the connection works.

But now, I''m doing a var_dump on my object and I get this :
object(COM)(1) {
[0]=resource(127) of type (COM)
}

Arg. I don''t understand this and the PHP manual doesnt help either. I would
have expected to get a list of methods/properties. At least the two I use to
authenticate.

var_dump (


obj [0])返回null。

有人能解释一下这个吗?


谢谢,

-

Alex

[JDR] Visitez Extremia,un monde gratuit et en francais pour D& D et

autres jeux de role。
www.extremia.org
obj[0]) returns null.
Could someone explain me more about this ?

Thanks,
--
Alex
[JDR] Visitez Extremia, un monde gratuit et en francais pour D&D et
autres jeux de role.
www.extremia.org


Alex写道:
Alex wrote:

您好,


我正在尝试使用PHP脚本中的(远程)COM对象(4.4,服务器已经

apache2 win32)。


基础知识似乎有用:我实例化COM对象(
Hello,

I''m trying to use a (remote) COM object from a PHP script (4.4, server has
apache2 win32).

The basics seem to work : I instantiate the COM object (


这篇关于PHP到COM对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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