<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Jabber with PHP &#8211; Part I (XMPPHP)</title>
	<atom:link href="http://www.brownphp.com/2009/03/jabber-with-php-part-i-xmpphp/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.brownphp.com/2009/03/jabber-with-php-part-i-xmpphp/</link>
	<description>Created and Designed for Object Oriented PHP and Web Developers</description>
	<lastBuildDate>Wed, 23 Nov 2011 08:18:10 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: hayesha</title>
		<link>http://www.brownphp.com/2009/03/jabber-with-php-part-i-xmpphp/comment-page-1/#comment-13215</link>
		<dc:creator>hayesha</dc:creator>
		<pubDate>Tue, 12 Apr 2011 05:23:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.brownphp.com/?p=184#comment-13215</guid>
		<description> 
Hi Tobias , 
 
Is there a way to achieve the user registration on the jabber server (ejabberd: ejabberdctl register user host password) through XMPPHP library? 
 
I found user registration function for  XMPPHP_XMPP.php  &lt;a href=&quot;http://(http://pastebin.com/CTLpLHnY)&quot; rel=&quot;nofollow&quot;&gt;(http://pastebin.com/CTLpLHnY)&lt;/a&gt; 
 
and called it in my code as follows: 
            $conn = new XMPPHP_XMPP($this-&gt;config-&gt;item(&#039;xmpp_host&#039;), $this-&gt;config-&gt;item(&#039;xmpp_port&#039;), $this-&gt;config-&gt;item(&#039;xmpp_admin_username&#039;), $this-&gt;config-&gt;item(&#039;xmpp_admin_password&#039;), &#039;xmpphp&#039;, $this-&gt;config-&gt;item(&#039;xmpp_server&#039;), $printlog=$this-&gt;config-&gt;item(&#039;xmpp_log&#039;), $loglevel=XMPPHP_Log::LEVEL_VERBOSE); 
            try { 
                $conn-&gt;connect(); 
                $conn-&gt;registerNewUser($username, $passwd); 
                $payload = $conn-&gt;processUntil(&#039;new_user_registered&#039;); 
                $credentials = $payload[0][1]; 
                $conn-&gt;disconnect(); 
                } 
            catch(XMPPHP_Exception $e) { 
            //die($e-&gt;getMessage()); 
            } 
 
Although it only dose the registration partially(although I see the newly registered user through jeabberd admin interface I cannot send any messages to that user throuth the PHP) and if I run the same code within few time gaps it fails also if I try to communicate to the ejabberd with the username and password it fails to send the message.  
 
Appreciate if you can suggest me a lead on how to overcome this issue. 
 
Many thanks, 
Hayesha </description>
		<content:encoded><![CDATA[<p>Hi Tobias , </p>
<p>Is there a way to achieve the user registration on the jabber server (ejabberd: ejabberdctl register user host password) through XMPPHP library? </p>
<p>I found user registration function for  XMPPHP_XMPP.php  <a href="http://(http://pastebin.com/CTLpLHnY)" rel="nofollow">(</a><a href="http://pastebin.com/CTLpLHnY" rel="nofollow">http://pastebin.com/CTLpLHnY</a>) </p>
<p>and called it in my code as follows:<br />
            $conn = new XMPPHP_XMPP($this-&gt;config-&gt;item(&#039;xmpp_host&#039;), $this-&gt;config-&gt;item(&#039;xmpp_port&#039;), $this-&gt;config-&gt;item(&#039;xmpp_admin_username&#039;), $this-&gt;config-&gt;item(&#039;xmpp_admin_password&#039;), &#039;xmpphp&#039;, $this-&gt;config-&gt;item(&#039;xmpp_server&#039;), $printlog=$this-&gt;config-&gt;item(&#039;xmpp_log&#039;), $loglevel=XMPPHP_Log::LEVEL_VERBOSE);<br />
            try {<br />
                $conn-&gt;connect();<br />
                $conn-&gt;registerNewUser($username, $passwd);<br />
                $payload = $conn-&gt;processUntil(&#039;new_user_registered&#039;);<br />
                $credentials = $payload[0][1];<br />
                $conn-&gt;disconnect();<br />
                }<br />
            catch(XMPPHP_Exception $e) {<br />
            //die($e-&gt;getMessage());<br />
            } </p>
<p>Although it only dose the registration partially(although I see the newly registered user through jeabberd admin interface I cannot send any messages to that user throuth the PHP) and if I run the same code within few time gaps it fails also if I try to communicate to the ejabberd with the username and password it fails to send the message.  </p>
<p>Appreciate if you can suggest me a lead on how to overcome this issue. </p>
<p>Many thanks,<br />
Hayesha</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shelby Denike</title>
		<link>http://www.brownphp.com/2009/03/jabber-with-php-part-i-xmpphp/comment-page-1/#comment-13201</link>
		<dc:creator>Shelby Denike</dc:creator>
		<pubDate>Mon, 28 Mar 2011 19:58:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.brownphp.com/?p=184#comment-13201</guid>
		<description>Know of a way to get it to join a group chat that has a password on it? </description>
		<content:encoded><![CDATA[<p>Know of a way to get it to join a group chat that has a password on it?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: iwan setiawan</title>
		<link>http://www.brownphp.com/2009/03/jabber-with-php-part-i-xmpphp/comment-page-1/#comment-13085</link>
		<dc:creator>iwan setiawan</dc:creator>
		<pubDate>Fri, 05 Nov 2010 05:16:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.brownphp.com/?p=184#comment-13085</guid>
		<description>on the top about chat room, you explain about groupchat. how if i use chat room but not using groupchat. i using chat one by one with some body. please give me about source code talked about. </description>
		<content:encoded><![CDATA[<p>on the top about chat room, you explain about groupchat. how if i use chat room but not using groupchat. i using chat one by one with some body. please give me about source code talked about.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: spooki</title>
		<link>http://www.brownphp.com/2009/03/jabber-with-php-part-i-xmpphp/comment-page-1/#comment-13072</link>
		<dc:creator>spooki</dc:creator>
		<pubDate>Thu, 28 Oct 2010 21:25:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.brownphp.com/?p=184#comment-13072</guid>
		<description>just download archive, there are examples </description>
		<content:encoded><![CDATA[<p>just download archive, there are examples</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: abhishek</title>
		<link>http://www.brownphp.com/2009/03/jabber-with-php-part-i-xmpphp/comment-page-1/#comment-2628</link>
		<dc:creator>abhishek</dc:creator>
		<pubDate>Thu, 05 Nov 2009 17:57:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.brownphp.com/?p=184#comment-2628</guid>
		<description>Can you please let me know, how can i keep the connection alive because once the script ceases to run,the connection is broken. Or can u plz tell me of a way to make the timeout infinite??? 
 
Thnx 
Abhishek </description>
		<content:encoded><![CDATA[<p>Can you please let me know, how can i keep the connection alive because once the script ceases to run,the connection is broken. Or can u plz tell me of a way to make the timeout infinite??? </p>
<p>Thnx<br />
Abhishek</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jopnick</title>
		<link>http://www.brownphp.com/2009/03/jabber-with-php-part-i-xmpphp/comment-page-1/#comment-2582</link>
		<dc:creator>jopnick</dc:creator>
		<pubDate>Wed, 21 Oct 2009 02:43:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.brownphp.com/?p=184#comment-2582</guid>
		<description>Wow. 
Thank you so much for this post.  It was very well written and filled in a bunch of gaps I was unable to find in the code or in any examples.   
Getting the eJabber cluster up turned out to be the easy part, in that I&#039;ve spent 3x the time trying to get a message from PHP into a chatroom.   
 
You, good sir, are a gentleman and a scholar. 
 
Thanks again 
Jop 
 
 
 </description>
		<content:encoded><![CDATA[<p>Wow.<br />
Thank you so much for this post.  It was very well written and filled in a bunch of gaps I was unable to find in the code or in any examples.<br />
Getting the eJabber cluster up turned out to be the easy part, in that I&#039;ve spent 3x the time trying to get a message from PHP into a chatroom.   </p>
<p>You, good sir, are a gentleman and a scholar. </p>
<p>Thanks again<br />
Jop</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: iyanski</title>
		<link>http://www.brownphp.com/2009/03/jabber-with-php-part-i-xmpphp/comment-page-1/#comment-2581</link>
		<dc:creator>iyanski</dc:creator>
		<pubDate>Tue, 20 Oct 2009 16:11:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.brownphp.com/?p=184#comment-2581</guid>
		<description>can the object be stored in the session and keep the connection to the xmpp server?</description>
		<content:encoded><![CDATA[<p>can the object be stored in the session and keep the connection to the xmpp server?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

