<?php
include("XMPP.php");
$conn = new XMPPHP_XMPP('server.com', 5222, 'user', 'pass', 'home');
$conn->useEncryption(true);
$conn->connect();
$conn->processUntil('session_start');
$conn->message('[email protected]', mktime());
$payloads = $conn->processUntil('message');
$conn->message('[email protected]', mktime());
$conn->disconnect();
?>
右...所以它连接 - 它开始会话,并发送我使用的Jabber客户端接收到的第一个时间戳。XMPPHP发送消息,但不会收到
然后它应该“收到处理”消息(afaik),并且如果收到消息发送另一个时间戳。那么,这一点是不起作用的位。
我对XMPP服务器或XMPPHP没有预先的知识,所以所有的帮助,不管基本的,都不会被忽视! :)
谢谢。
尝试传递`new XMPPHP_XMPHP`的最后几个日志记录选项,即`$ xmpphp = new XMPPHP_XMPP($ server_settings [“address”],5222,$ xmpp_settings [“username”],$ xmpp_settings [“password”], $ resource,NULL,TRUE,XMPPHP_Log :: LEVEL_VERBOSE);` – 2010-12-02 18:04:01