Hello,
I am trying to write a PHP based Google Talk client using a
jabber-based class written in PHP: class.jabber.php. I've downloaded
the class from the following website - http://cjphp.netflint.net/.
It appears that this class in its current state does not work because
it does not have SSL/TLS support built in. I am an advanced PHP
programmer and I'm quite comfortable modifying the class to meet my
needs.
The server I'm going to be running the Google Talk client is running
PHP 4.3.6. The class uses fsockopen() to connect to the jabber server
(i.e. talk.google.com). I've tried every variation of protocols
(tcp://, tls:// and ssl://) and ports (5222, 5223 and 5224) and have
not been able to receive a response from the Talk server.
I have a couple of questions related to this modification that I'm
hoping for some help with:
1. PHP is currently running with OpenSSL, a requirement to use TLS
and SSL with fsockopen(). However, is fsockopen() with a secure
protocol sufficient to meet Google's secure requirements? Or do I
need to install or configure additional modules for fsockopen() to
work properly?
2. Is SASL required to connect to Google Talk? If so, how do I
configure PHP for SASL?
Any additional information that I've overlooked would also be greatly appreciated.
Thanks! |