How to create a jabber id using PHP XMPPHP in a private server
up vote
-3
down vote
favorite
i have a private server for jabber XMPP under Tor socks and i have used google XMPPHP to send messages to some ids in the same server.
include 'XMPPHP/config.php';
include 'XMPPHP/XMPP.php';
$conn = new XMPPHP_XMPP(host, port, user, pass, 'xmpphp', domain, $printlog=false, $loglevel=XMPPHP_Log::LEVEL_INFO);
try
$conn->connect();
$conn->processUntil('session_start');
$conn->presence();
$account = "messengerId@xxxxxxxxx.onion";
$conn->useEncryption(true);
$conn->subscribe($account);
$conn->message($account, 'aaaaa');
$conn->disconnect();
catch(XMPPHP_Exception $e)
echo $e->getMessage();
This code work successfully i need a way to create a new account in the server from php code and log in to it from the Pidgin software.
php xmpp tor xmpphp
add a comment |
up vote
-3
down vote
favorite
i have a private server for jabber XMPP under Tor socks and i have used google XMPPHP to send messages to some ids in the same server.
include 'XMPPHP/config.php';
include 'XMPPHP/XMPP.php';
$conn = new XMPPHP_XMPP(host, port, user, pass, 'xmpphp', domain, $printlog=false, $loglevel=XMPPHP_Log::LEVEL_INFO);
try
$conn->connect();
$conn->processUntil('session_start');
$conn->presence();
$account = "messengerId@xxxxxxxxx.onion";
$conn->useEncryption(true);
$conn->subscribe($account);
$conn->message($account, 'aaaaa');
$conn->disconnect();
catch(XMPPHP_Exception $e)
echo $e->getMessage();
This code work successfully i need a way to create a new account in the server from php code and log in to it from the Pidgin software.
php xmpp tor xmpphp
add a comment |
up vote
-3
down vote
favorite
up vote
-3
down vote
favorite
i have a private server for jabber XMPP under Tor socks and i have used google XMPPHP to send messages to some ids in the same server.
include 'XMPPHP/config.php';
include 'XMPPHP/XMPP.php';
$conn = new XMPPHP_XMPP(host, port, user, pass, 'xmpphp', domain, $printlog=false, $loglevel=XMPPHP_Log::LEVEL_INFO);
try
$conn->connect();
$conn->processUntil('session_start');
$conn->presence();
$account = "messengerId@xxxxxxxxx.onion";
$conn->useEncryption(true);
$conn->subscribe($account);
$conn->message($account, 'aaaaa');
$conn->disconnect();
catch(XMPPHP_Exception $e)
echo $e->getMessage();
This code work successfully i need a way to create a new account in the server from php code and log in to it from the Pidgin software.
php xmpp tor xmpphp
i have a private server for jabber XMPP under Tor socks and i have used google XMPPHP to send messages to some ids in the same server.
include 'XMPPHP/config.php';
include 'XMPPHP/XMPP.php';
$conn = new XMPPHP_XMPP(host, port, user, pass, 'xmpphp', domain, $printlog=false, $loglevel=XMPPHP_Log::LEVEL_INFO);
try
$conn->connect();
$conn->processUntil('session_start');
$conn->presence();
$account = "messengerId@xxxxxxxxx.onion";
$conn->useEncryption(true);
$conn->subscribe($account);
$conn->message($account, 'aaaaa');
$conn->disconnect();
catch(XMPPHP_Exception $e)
echo $e->getMessage();
This code work successfully i need a way to create a new account in the server from php code and log in to it from the Pidgin software.
php xmpp tor xmpphp
php xmpp tor xmpphp
edited Nov 11 at 12:20
asked Nov 10 at 23:19
ChaiBtc
12
12
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53244373%2fhow-to-create-a-jabber-id-using-php-xmpphp-in-a-private-server%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown