xmpphp/sendmessage_example.php
temp a0f0173d55 added a class prefix, refactored log-class, finished scopes for methods in xmlstream and xmpp
git-svn-id: svn://netflint.net/xmpphp@30 ef36c318-a008-4979-b6e8-6b496270793b
2008-05-01 14:29:48 +00:00

14 lines
409 B
PHP

<?php
// activate full error reporting
error_reporting(E_ALL & E_STRICT);
include("XMPPHP/XMPP.php");
$conn = new XMPP('talk.google.com', 5222, 'username', 'password', 'xmpphp', 'gmail.com', $printlog=false, $loglevel=Logging::LEVEL_INFO);
$conn->connect();
$conn->processUntil('session_start');
$conn->presence();
$conn->message('stephan@jabber.wentz.it', 'This is a test message!');
$conn->disconnect();