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 using exec() or is there a better way?
ejabberdctl
exec()