* added presence to example

* fixed typeo


git-svn-id: svn://netflint.net/xmpphp@27 ef36c318-a008-4979-b6e8-6b496270793b
This commit is contained in:
fritzy 2008-04-28 22:10:50 +00:00
parent c395c7115b
commit b326a5380f
2 changed files with 2 additions and 1 deletions

View File

@ -7,6 +7,7 @@ include("xmpp.php");
$conn = new XMPP('talk.google.com', 5222, 'username', 'password', 'xmpphp', 'gmail.com', $printlog=False, $loglevel=Logging::LOG_INFO); $conn = new XMPP('talk.google.com', 5222, 'username', 'password', 'xmpphp', 'gmail.com', $printlog=False, $loglevel=Logging::LOG_INFO);
$conn->connect(); $conn->connect();
$conn->processUntil('session_start'); $conn->processUntil('session_start');
$conn->presence();
$conn->message('someguy@someserver.net', 'This is a test message!'); $conn->message('someguy@someserver.net', 'This is a test message!');
$conn->disconnect(); $conn->disconnect();

View File

@ -29,7 +29,7 @@ class XMLStream {
protected $host; protected $host;
protected $port; protected $port;
protected $stream_start = '<stream>'; protected $stream_start = '<stream>';
protected $stream_end = '</stream'; protected $stream_end = '</stream>';
public $disconnected = false; public $disconnected = false;
protected $sent_disconnect = false; protected $sent_disconnect = false;
protected $ns_map = array(); protected $ns_map = array();