Re: PHP-Jabber

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Hello


On Wed, 3 May 2006, Tony Aldrich wrote:

> Can somebody recommend clean php jabber library? I must send notifications
> to some users.



This lib weems to work:

http://cjphp.netflint.net/

require("class.jabber.php");

$jabber = new Jabber;

$jabber->server         = "jabber.org";
$jabber->port           = 5222;
$jabber->username       = "user";
$jabber->password       = "passwd";
$jabber->resource       = "ClassJabberPHP";

$jabber->Connect() or die("Couldn't connect!");
$jabber->SendAuth() or die("Couldn't authenticate!");
$jabber->SendPresence();
$jabber->SendMessage('some@xxxxxxxxxx', 'normal', NULL, array('body' => 'Hello');
$jabber->Disconnect();


-- 
--Jyry
C|:-(    C|:-/    C|========8-O    C|8-/    C|:-(

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux