Not sure I understand the problem, but just want to make clear that you
understand that once an HTTP page connection is closed after the the
PHP script runs, that your connection with the server will be closed.
I use the class with a command line PHP script that acts as the client
and loops, waiting for any new incoming messages.
Something like this:
require("class.jabber.php");
$JABBER = new Jabber;
$JABBER->server = "Your Server";
$JABBER->port = "5222";
$JABBER->username = "jabberuser";
$JABBER->password = "secret";
$JABBER->resource = "";
$JABBER->enable_logging = FALSE;
$JABBER->Connect() or die("Couldn't connect!");
$JABBER->SendAuth() or die("Couldn't authenticate!");
while(true) {
$JABBER->CruiseControl();
}
This may not help very much. It's not exactly what I use, but mine is
so customized for a certain purpose that it wouldn't be useful to
include the exact code.
There used to be a command line PHP client called jclient, but I can't
seem to find it anymore. Does anyone have a copy of it?
On Jun 11, 2005, at 1:46 PM, Nayana Hettiarachchi - GMI wrote:
Hi,
Has anyone used the PHP jabber class, everything works great in it
except that i am not seeing the server sending the request for
authentication to the client, i tried to debug this by checking all
the messages that comes from the server but i am not seeing any
message comes through when u try to add the php client to another
client`s user list,
anyone had a similar issue ? any work arounds ? can the authentication
requirment be turned off on a user basis ?
Nayana
--
Nayana Hettiarachchi <[EMAIL PROTECTED]>
Associate Director - IT Development
GMI (Global Market Insite, Inc.)
Direct: +1-206-315-9319
Cell: +1-206-713-5759
Integrated Solutions for Market Research
www.gmi-mr.com
_______________________________________________
jdev mailing list
[email protected]
http://mail.jabber.org/mailman/listinfo/jdev
_______________________________________________
jdev mailing list
[email protected]
http://mail.jabber.org/mailman/listinfo/jdev