【问题标题】:How to connect xmpp in php?如何在php中连接xmpp?
【发布时间】: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日志吗?

标签: php xmpp xmpphp


【解决方案1】:

您是否尝试过使用 TLS 并使用 5223 端口

你从哪里得到这个库?

【讨论】:

    猜你喜欢
    • 2013-07-22
    • 2015-07-23
    • 2015-05-26
    • 1970-01-01
    • 1970-01-01
    • 2020-12-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多