xmpphp/sendmessage_example.php
temp c395c7115b switched to loglevel constants in examples.
git-svn-id: svn://netflint.net/xmpphp@26 ef36c318-a008-4979-b6e8-6b496270793b
2008-04-28 22:08:02 +00:00

14 lines
383 B
PHP

<?php
// activate full error reporting
error_reporting(E_ALL & E_STRICT);
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->message('someguy@someserver.net', 'This is a test message!');
$conn->disconnect();
?>