I'm a newbie to XMPP and I'm looking to basically connect the PHP to an OpenFire installation on my localhost.
This is a piece of code I found (hack and slash I know but I can't seem to wrap my head around this). Anyway code just simply sends a message:
<?php
include("xmpp.php");
//username = user without domain, "user" and not "user@server" - home is the resource
$conn = new XMPPHP_XMPP('my.server', 5222, 'username', 'password', 'home');
// Enables TLS - enabled by default, call before connect()!
$conn->useEncryption(true);
$conn->connect();
$conn->processUntil('session_start');
$conn->message('someguy@someserver.net', 'This is a test message!');
$conn->disconnect();
?>
My question is what should I replace my.server
with ? Tried looking but I couldn't find anything
Also
Home is the resource
I have no idea what that means idea.
username
and password
?
Is that of any user on my OpenFire?
I'm looking for more advice than complete solutions. Thanks For Anything. Oh And Happy New Year!