<?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>PHP Web Application Developer from Bangladesh</title>
	<atom:link href="http://www.yunuscse.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.yunuscse.com</link>
	<description>Multi Linguage Web Expert</description>
	<lastBuildDate>Mon, 08 Mar 2010 08:35:16 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Jabber Integration &#8212; Is it so tough?</title>
		<link>http://www.yunuscse.com/2010/03/08/jabber-integration-is-it-so-tough/</link>
		<comments>http://www.yunuscse.com/2010/03/08/jabber-integration-is-it-so-tough/#comments</comments>
		<pubDate>Mon, 08 Mar 2010 08:17:49 +0000</pubDate>
		<dc:creator>Yunus Ali Khan</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[PHP API]]></category>
		<category><![CDATA[Jabber API]]></category>
		<category><![CDATA[Jabber PHP]]></category>
		<category><![CDATA[Xampp]]></category>
		<category><![CDATA[xmpphp]]></category>

		<guid isPermaLink="false">http://www.yunuscse.com/?p=8</guid>
		<description><![CDATA[What is jabber:
Jabber is an initiative to produce an open source, XML based instant messanging platform.
Jabber is an API to provide instant messaging and presence functionality independent of data exchanged between entities. The primary use of Jabber is to give existing applications instant connectivity through messaging and presence features, contact list capabilities, and back-end services [...]]]></description>
			<content:encoded><![CDATA[<p><strong>What is jabber:</strong></p>
<p>Jabber is an initiative to produce an open source, XML based instant messanging platform.</p>
<p>Jabber is an API to provide instant messaging and presence functionality independent of data exchanged between entities. The primary use of Jabber is to give existing applications instant connectivity through messaging and presence features, contact list capabilities, and back-end services that transparently enrich the available functionality.</p>
<p>Jabber began in early 1998 as an open source project to both enable and ease the construction of compatible IM clients.</p>
<p>After two years of full-time development by a large group of individuals around the world:</p>
<ul>
<li>The abstraction layer and all APIs are fully implemented.</li>
<li>The XML data types are well defined</li>
<li>Clients for all major platforms and environments are available or being developed.</li>
<li>The GPL[4]/LGPL[5] licensed <a title="Jabber Server" href="http://jabber.org/" target="_blank">Jabber Server</a> is fully functional.</li>
<li>Numerous working server-side components (transports) exist or are in public development for popular services such as ICQ, AOL IM, Microsoft Messenger, Yahoo! Messenger, IRC, SMTP, RSS (news headlines), and more.</li>
</ul>
<p><strong>How you work:</strong></p>
<p>When I was integrated jabber I used a php class XMPPHP.</p>
<p>XMPPHP is the successor to Class.Jabber.PHP and it is excellent for you. Now I am describing the step how we go ahead:</p>
<p>Step1: If you have an existing account at a Jabber-enabled service like Google Talk you can simply log in. Otherwise create a new gtalk ID.</p>
<p>Step2: Download the <a title="Download XMPPHP" href="http://xmpphp.googlecode.com/files/xmpphp-0.1beta-r50.tar.gz" target="_blank">XMPPHP</a></p>
<p>Step3: Enter the folder XMPPHP  and open sendmessage_example.php</p>
<p>Now edit this code.</p>
<p>Add this line require_once &#8216;XMPPHP/Log.php&#8217;; before include &#8216;XMPPHP/XMPP.php&#8217;;</p>
<p>Now you set your gtalk username and password. Say your gtalk ID is-jabber.test@gmail.com and password is-test123</p>
<p>Now you create your connection and complete the full code:</p>
<p>&lt;?php</p>
<p>include &#8216;XMPPHP/XMPP.php&#8217;;</p>
<p>require_once $basepath.&#8217;XMPPHP/Log.php&#8217;;</p>
<p>$username = &#8220;jabber.test&#8221;;</p>
<p>$password = &#8220;test123&#8243;;</p>
<p>$to = &#8220;loren@gmail.com&#8221;;</p>
<p>$message = &#8220;This is a test message&#8221;;</p>
<p>$conn = new XMPPHP_XMPP(&#8216;talk.google.com&#8217;, 5222, &#8220;$username&#8221;, &#8220;$password&#8221;, &#8216;xmpphp&#8217;, &#8216;gmail.com&#8217;, $printlog=false, $loglevel=XMPPHP_Log::LEVEL_INFO);<br />
try {<br />
$conn-&gt;connect();<br />
$conn-&gt;processUntil(&#8217;session_start&#8217;);<br />
$conn-&gt;presence();<br />
$conn-&gt;message($to, $message);<br />
$conn-&gt;disconnect();<br />
} catch(XMPPHP_Exception $e) {<br />
die($e-&gt;getMessage());<br />
}</p>
<p>?&gt;</p>
<p>O yes to not use SSL/TLS encryption if available, set<br />
$conn-&gt;use_encryption = False;<br />
before calling<br />
$conn-&gt;connect();</p>
<p>Now you can test. Enjoy jabber! <img src='http://www.yunuscse.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.yunuscse.com/2010/03/08/jabber-integration-is-it-so-tough/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
