Talk to Google Talk from PHP

From rukapedia
Revision as of 18:31, 18 December 2005 by Shai (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

I'd like to find a way of talking to Google Talk (i.e. sending automated, script-driven messages, "bot" style) from PHP. That way I can have scripts on my webserver send me messages like "the load average is high" or "someone just bought a widget."

Because Google Talk uses the open Jabber/XMPP protocol, in theory this should be easy to do. In reality, it seems that none of the current PHP Jabber Code Libraries have all of the Google Talk technical requirements, most notably the "TLS is required" part.

Pointers to code that will support this, whether in PHP, Perl or Ruby, are welcome.

Message from Shai:

I also need to do this with PHP and am having the same problem - can anyone help?