Create ejabberd user from PHP

后端 未结 7 1670
说谎
说谎 2020-12-08 17:37

I need to create an ejabberd user from a PHP script. I also need to be able to add the new user to a predefined shared roster.

Should I just call ejabberdctl<

7条回答
  •  情深已故
    2020-12-08 18:00

    ejabberdctl is by far the easiest in this specific case. The other options are:

    • Implement a full client XMPP in PHP (!)

    • Implement a module in Erlang that proxies the requests: the PHP<-->Erlang communication would need to be through a socket and lots of marshaling would be involved (!)

提交回复
热议问题