From b326a5380fb858abcad4d9942a862858733fdb97 Mon Sep 17 00:00:00 2001 From: fritzy Date: Mon, 28 Apr 2008 22:10:50 +0000 Subject: [PATCH] * added presence to example * fixed typeo git-svn-id: svn://netflint.net/xmpphp@27 ef36c318-a008-4979-b6e8-6b496270793b --- sendmessage_example.php | 1 + xmlstream.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/sendmessage_example.php b/sendmessage_example.php index 6e0dcb0..7d3fe01 100644 --- a/sendmessage_example.php +++ b/sendmessage_example.php @@ -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->connect(); $conn->processUntil('session_start'); +$conn->presence(); $conn->message('someguy@someserver.net', 'This is a test message!'); $conn->disconnect(); diff --git a/xmlstream.php b/xmlstream.php index 7a59a04..646d925 100644 --- a/xmlstream.php +++ b/xmlstream.php @@ -29,7 +29,7 @@ class XMLStream { protected $host; protected $port; protected $stream_start = ''; - protected $stream_end = '