title: How to connect xmpp in php?
body: <p>i am trying to connect server using xmppphp but is not connect is display nothing</p>
  
  <pre><code>include 'XMPPHP/XMPP.php';
  
  $conn = new XMPPHP_XMPP('talk.google.com', 5222, 'test@gmail.com', 'test123', 'xmpphp', 'gmail.com', $printlog=false, $loglevel=XMPPHP_Log::LEVEL_INFO);
  
  try {
      $conn-&gt;connect();
      $conn-&gt;processUntil('session_start');
      $conn-&gt;presence();
      $conn-&gt;message('123@gmail.com', 'This is a test message!');
      $conn-&gt;disconnect();
  } catch(XMPPHP_Exception $e) {
      die($e-&gt;getMessage());
  }
  </code></pre>