title: XMPPHP and Openfire
body: <p>I'm a newbie to XMPP and I'm looking to basically connect the PHP to an OpenFire installation on my localhost.</p>
  
  <p>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:</p>
  
  <pre><code>&lt;?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-&gt;useEncryption(true);
      $conn-&gt;connect();
      $conn-&gt;processUntil('session_start');
      $conn-&gt;message('someguy@someserver.net', 'This is a test message!');
      $conn-&gt;disconnect();
  
   ?&gt;
  </code></pre>
  
  <p>My question is what should I replace <code>my.server</code> with ? Tried looking but I couldn't find anything</p>
  
  <p>Also</p>
  
  <blockquote>
    <p>Home is the resource</p>
  </blockquote>
  
  <p>I have no idea what that means idea. </p>
  
  <p><code>username</code> and <code>password</code> ? 
  Is that of any user on my OpenFire?</p>
  
  <p>I'm looking for more advice than complete solutions. Thanks For Anything. Oh And Happy New Year!</p>