Open GoogleCodeExporter opened 8 years ago
This would be very useful to me, in fact I desperately need a function to
register a
new account. Or at least, some alternative way of doing it? Thanks
Original comment by owen.sou...@gtempaccount.com
on 18 Jan 2010 at 3:28
This document http://xmpp.org/extensions/xep-0077.html describes how to create
new account.
With patch below I can create accounts.
It works but it contains very ugly code.
I don't know select_socket things, I used fwrite.
How to use:
include 'XMPPHP/XMPP.php';
$conn = new XMPPHP_XMPP('localhost', 5222, 'anonymous', '', 'xmpphp',
'server.tld', true, $loglevel=XMPPHP_Log::LEVEL_INFO);
try {
$conn->connect();
$conn->register("new_user", "old_password", "new_user@server.tld");
$conn->disconnect();
} catch(XMPPHP_Exception $e) {
die($e->getMessage());
Original comment by kalys.os...@gmail.com
on 30 Oct 2010 at 9:37
Attachments:
it's not working in ejabbered!
I register one user it's working then again i am going to register it gives
error of
fclose(); //like no connection there so...
if i fix this error with
if(!$this->socket){
fclose($this->socket);
}
however it's not a solution because user not registered in server...
After some time i try it can register a user then again gives error....
Please help me!
I really get out of this issue.....
Thanks
Nishant
Original comment by nishant8...@gmail.com
on 5 Jan 2012 at 2:35
halla!
Original comment by Foundati...@gmail.com
on 3 May 2013 at 3:16
fclose(); //like no connection there so...
if i fix this error with
if(!$this->socket){
fclose($this->socket);
}
not working error
Please help me!
Original comment by azadm...@gmail.com
on 11 Jul 2013 at 9:20
[deleted comment]
$conn = new XMPPHP_XMPP('localhost', 5222, 'anonymous', '', 'xmpphp',
'localhost', true, $loglevel=XMPPHP_Log::LEVEL_INFO);
try {
$conn->connect();
$conn->register("testchat", "test");
$conn->disconnect();
} catch(XMPPHP_Exception $e) {
die($e->getMessage());
}
----
But this is not working. Please help me
Original comment by madagoni...@gmail.com
on 11 Jun 2014 at 7:50
Original issue reported on code.google.com by
ivan.bor...@gmail.com
on 2 Aug 2009 at 9:29