我从这个地址下载的 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,下载链接将不胜感激。
先感谢您