XMPHP 在本地不起作用



我从这个地址下载XMPPHP有问题:

http://code.google.com/p/xmpphp/downloads/list

我下载了列表中的最后一个(2009 年 7 月)

实际上,我在本地(开发模式)中运行Jabber..并且我想测试发送聊天消息,所以我写了以下内容:

$xmpp = new XMPPHP_XMPP('host.lan', 5280,'serverUser','serverPass','resource', 'xmpphp');
$xmpp->connect(30, true, true);
$xmpp->message('user@host.lan', 'Hello there , this is a test from the mobile version');
$xmpp->disconnect();

没有错误消息,没有警告,一切都说消息已发送。但我想知道它是否在本地不起作用。

忘了说,我使用的是PHP 5.4,如果我下载的XMPP版本不适用于php 5.4,下载链接将不胜感激。

提前谢谢你

尝试启用调试:

$conn = new XMPPHP_XMPP( 'host', port, 'username', 'pws', 'resource', 'domain', $printlog=True, $loglevel=XMPPHP_Log::LEVEL_INFO);

最新更新