使用php接收XMPP消息
我在同一台机器上有 PHP+mysql 和 XMPP 服务器,我不知道是否可以这样做: 当client@xmpp向PHP@xmpp(例如从iPhone)发送消息“hello”时,将自动调用XMPP服务器上的PHP脚本并将所有变量传递过来,以便PHP脚本可以将此消息插入到mysql 。
谢谢
I have PHP+mysql and XMPP server on the same machine, I don't know if it's possible to do this:
when client@xmpp sends a message "hello" to PHP@xmpp (e.g. from iPhone), a PHP script on the XMPP server will be automatically called and all variables will be passed over, so that the PHP script can insert this message to mysql.
thank you
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,这是可能的。
查看 XMPPHP 库中的 API
http://code.google.com/p/xmpphp/
这里有很多关于相同
xmpphp XMPP 的问题,从 php 脚本发送消息
http://www .ibm.com/developerworks/xml/tutorials/x-alertxmpptut/section4.html
Yes it's possible.
Look at the API in XMPPHP library
http://code.google.com/p/xmpphp/
there are tons of questions here about the same
xmpphp XMPP, send message from php script
http://www.ibm.com/developerworks/xml/tutorials/x-alertxmpptut/section4.html