2008-04-02 08:09:28 +01:00
|
|
|
<?php
|
2008-04-28 23:05:31 +01:00
|
|
|
|
|
|
|
// activate full error reporting
|
|
|
|
error_reporting(E_ALL & E_STRICT);
|
|
|
|
|
2008-04-02 08:09:28 +01:00
|
|
|
include("xmpp.php");
|
2008-04-28 23:08:02 +01:00
|
|
|
$conn = new XMPP('talk.google.com', 5222, 'username', 'password', 'xmpphp', 'gmail.com', $printlog=False, $loglevel=Logging::LOG_INFO);
|
2008-04-02 08:09:28 +01:00
|
|
|
$conn->connect();
|
|
|
|
$conn->processUntil('session_start');
|
2008-04-28 23:10:50 +01:00
|
|
|
$conn->presence();
|
2008-04-02 08:09:28 +01:00
|
|
|
$conn->message('someguy@someserver.net', 'This is a test message!');
|
|
|
|
$conn->disconnect();
|
|
|
|
|
|
|
|
?>
|