【发布时间】:2013-11-08 05:44:25
【问题描述】:
我正在尝试使用 xmppphp 连接服务器,但连接不上不显示任何内容
include 'XMPPHP/XMPP.php';
$conn = new XMPPHP_XMPP('talk.google.com', 5222, 'test@gmail.com', 'test123', 'xmpphp', 'gmail.com', $printlog=false, $loglevel=XMPPHP_Log::LEVEL_INFO);
try {
$conn->connect();
$conn->processUntil('session_start');
$conn->presence();
$conn->message('123@gmail.com', 'This is a test message!');
$conn->disconnect();
} catch(XMPPHP_Exception $e) {
die($e->getMessage());
}
【问题讨论】:
-
你尝试使用DEBUG日志吗?