<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>The Developer Day &#187; google-talk</title>
	<atom:link href="http://www.thedeveloperday.com/tag/google-talk/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thedeveloperday.com</link>
	<description>Staying Curious</description>
	<lastBuildDate>Fri, 03 Feb 2012 12:03:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Google Talk XMPP Jabber integration with PHP</title>
		<link>http://www.thedeveloperday.com/googletalk-integration-with-php/</link>
		<comments>http://www.thedeveloperday.com/googletalk-integration-with-php/#comments</comments>
		<pubDate>Tue, 07 Apr 2009 13:44:03 +0000</pubDate>
		<dc:creator>Žilvinas Šaltys</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[google-talk]]></category>
		<category><![CDATA[integration]]></category>
		<category><![CDATA[jabber]]></category>
		<category><![CDATA[xmpp]]></category>

		<guid isPermaLink="false">http://www.thedeveloperday.com/?p=95</guid>
		<description><![CDATA[Internaly GoogleTalk uses XMPP messaging protocol. XMPP - The Extensible Messaging and Presence Protocol. Often also called as Jabber. Since it&#8217;s an open protocol means it&#8217;s possible to develop your own clients to connect to other XMPP servers. There are quite a few xmpp libraries that provide client functionality. The one I tried myself is XMPPHP. [...]]]></description>
			<content:encoded><![CDATA[<p>Internaly <a href="http://www.google.com/talk/">GoogleTalk</a> uses <a href="http://xmpp.org/">XMPP</a> messaging protocol. XMPP - The Extensible Messaging and Presence Protocol. Often also called as Jabber. Since it&#8217;s an open protocol means it&#8217;s possible to develop your own clients to connect to other XMPP servers.</p>
<p>There are quite a few <a title="xmpp libraries" href="http://xmpp.org/software/libraries.shtml">xmpp libraries</a> that provide client functionality. The one I tried myself is <a title="XMPPHP library" href="http://code.google.com/p/xmpphp/">XMPPHP</a>. It&#8217;s usage is really simple. For example to send a message you would do something like this:</p>
<pre name="code" class="php:nogutter">
require_once('XMPPHP/XMPP.php');

$conn = new XMPPHP_XMPP('talk.google.com', 5222, 'user@gmail.com',
'password', 'xmpphp', 'gmail.com', $printlog = false,
$loglevel = XMPPHP_Log::LEVEL_INFO);

try {
    $conn->connect();
    $conn->processUntil('session_start');
    $conn->presence();
    $conn->message('friend@gmail.com', 'Hi!');
    $conn->disconnect();
} catch(XMPPHP_Exception $e) {
    die($e->getMessage());
}</pre>
<p>I find this to be quite valuable. Who these days does not keep their IM live all the time? I imagine it&#8217;s like a cellphone. Meaning you can use it for many different services.</p>
<p>For example I developed a small application that checks if every one of my collegues is &#8220;Working on a task&#8221; in <a title="fogbugz" href="http://www.fogcreek.com/FogBUGZ/">FogBugz</a> and if not it sends an automated message to them to remind them that they should select a task they are working on. I also have a small tracker that tracks a local torrents network looking for high rated IMDB movies. I have an idea that it would be nice to integrate my tracker with GTalk so that it would inform me when a new episode of House MD is available or a new highly rated movie appears. The sky is the limit <img src='http://www.thedeveloperday.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.thedeveloperday.com/googletalk-integration-with-php/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
	</channel>
</rss>

