PHP Jabber 集成

发布于 2024-07-19 02:49:08 字数 397 浏览 3 评论 0原文

我想知道如何集成 jabber 而不是使用我的 AJAX 轮询脚本。 我偶然发现了以下内容:http://code.google.com/p/xmpphp/

它允许我访问 jabber 服务器,但没有告诉我具体如何操作。 我的意思是例如

$payloads = $conn->processUntil(array('message', 'presence', 'end_stream', 'session_start'));

我可以使用一组固定的命令吗? 有没有一些网站可以用非常简单的术语解释 jabber 工作流程?

非常感谢您的宝贵时间。

I am wondering how to integrate jabber instead of using my AJAX polling script. I chanced upon the following: http://code.google.com/p/xmpphp/

It gives me access to a jabber server, but does not tell me how to exactly go about it. I mean for example

$payloads = $conn->processUntil(array('message', 'presence', 'end_stream', 'session_start'));

Are there a fixed set of commands that I can use? Is there some site which explains the jabber workflow in very simple terms?

Thank you very much for your time.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

四叶草在未来唯美盛开 2024-07-26 02:49:08

我一直想知道使用 XMPP 的技术,一直在查看:

此技术的示例可参见:

I've been wondering about technologies to play around with XMPP, been looking at:

Examples of this technology can be seen at:

夏夜暖风 2024-07-26 02:49:08

这两个文档页面似乎具有相当的可读性:

  1. Core
  2. 即时消息和状态

另外,您可能已经在 xmpphp 上投入了大量资金,但如果没有,您可能需要看看 Phurple。 它使您可以访问 libpurple 库(Pidgin)来自 PHP。

从项目页面:

这个 libpurple PHP 绑定,
定义了一组内部类,
提供使用 aol 和 icq 的可能性
(奥斯卡)、雅虎、MSN、jabber、irc 和
更多直接来自 PHP 的协议。
用 PHP 编写自己的 IM 聊天客户端,
就像 PHP 实现它一样简单。

These two doc pages seem to be fairly readable:

  1. Core
  2. Instant Messaging and Presence

Also, you might already be heavily invested into xmpphp, but if not, you may want to take a look at Phurple. It gives you access to the libpurple library (the code-base for Pidgin) from PHP.

From the project page:

This libpurple PHP binding, which
defines a set of internal classes,
gives a possibility to use aol and icq
(oscar), yahoo, msn, jabber, irc and
much more protocols directly from PHP.
Write your own IM chat client in PHP,
as simply as PHP enables it.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文