<?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: &#8220;Who Is Online&#8221; Widget With PHP, MySQL &amp; jQuery</title>
	<atom:link href="http://tutorialzine.com/2010/03/who-is-online-widget-php-mysql-jquery/feed/" rel="self" type="application/rss+xml" />
	<link>http://tutorialzine.com/2010/03/who-is-online-widget-php-mysql-jquery/</link>
	<description>Web Development Tutorials &#38; Resources</description>
	<lastBuildDate>Tue, 07 Feb 2012 23:23: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: Nic</title>
		<link>http://tutorialzine.com/2010/03/who-is-online-widget-php-mysql-jquery/#comment-20693</link>
		<dc:creator>Nic</dc:creator>
		<pubDate>Wed, 30 Nov 2011 17:47:07 +0000</pubDate>
		<guid isPermaLink="false">http://tutorialzine.com/?p=744#comment-20693</guid>
		<description>Getting &#039;UNKNOWN&#039; for IP,etc., here I&#039;m afraid. Searched for this script after seeing something similar elsewhere so would love to get it working. Tried the &#039;file_get_contents&#039; test with Google and it worked, returning the Google page (text only, no images) so unsure what to test next.

Many thanks in advance.</description>
		<content:encoded><![CDATA[<p>Getting &#8216;UNKNOWN&#8217; for IP,etc., here I&#8217;m afraid. Searched for this script after seeing something similar elsewhere so would love to get it working. Tried the &#8216;file_get_contents&#8217; test with Google and it worked, returning the Google page (text only, no images) so unsure what to test next.</p>
<p>Many thanks in advance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brett Widmann</title>
		<link>http://tutorialzine.com/2010/03/who-is-online-widget-php-mysql-jquery/#comment-17000</link>
		<dc:creator>Brett Widmann</dc:creator>
		<pubDate>Fri, 22 Apr 2011 01:29:28 +0000</pubDate>
		<guid isPermaLink="false">http://tutorialzine.com/?p=744#comment-17000</guid>
		<description>This was an awesome tutorial! I really like how it works.</description>
		<content:encoded><![CDATA[<p>This was an awesome tutorial! I really like how it works.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jerome</title>
		<link>http://tutorialzine.com/2010/03/who-is-online-widget-php-mysql-jquery/#comment-14834</link>
		<dc:creator>Jerome</dc:creator>
		<pubDate>Fri, 28 Jan 2011 11:09:29 +0000</pubDate>
		<guid isPermaLink="false">http://tutorialzine.com/?p=744#comment-14834</guid>
		<description>Thanks for sharing that widget, when I tried it on my xampp it worked perfectly but on my web server it didn&#039;t.

So I came up with following fix, what is actually working on more configurations then with ip2long because of 32bit and 64bit system.

You can let MySQL do the converting with INET_ATON():

So what you have to change in online.php

Find:
$stringIp = $_SERVER[&#039;REMOTE_ADDR&#039;];
$intIp = ip2long($stringIp);

Replace:
$stringIp = $_SERVER[&#039;REMOTE_ADDR&#039;];

Find:
1 FROM tz_who_is_online WHERE ip=&quot;.$intIp

Replace
1 FROM tz_who_is_online WHERE ip = INET_ATON(&quot;.$stringIp.&quot;)&quot;

Find:
VALUES(&quot;.$intIp.&quot;,&#039;&quot;.$city.&quot;&#039;,

Replace:
VALUES(INET_ATON(&quot;.$stringIp.&quot;),&#039;&quot;.$city.&quot;&#039;,

Find:
dt=NOW() WHERE ip=&quot;.$intIp

Replace:
dt=NOW() WHERE ip = INET_ATON(&quot;.$stringIp.&quot;)&quot;

Again, thanks for sharing, I made a plugin for &lt;a href=&quot;http://www.jakcms.com&quot; rel=&quot;nofollow&quot;&gt;JAKCMS&lt;/a&gt;.</description>
		<content:encoded><![CDATA[<p>Thanks for sharing that widget, when I tried it on my xampp it worked perfectly but on my web server it didn&#8217;t.</p>
<p>So I came up with following fix, what is actually working on more configurations then with ip2long because of 32bit and 64bit system.</p>
<p>You can let MySQL do the converting with INET_ATON():</p>
<p>So what you have to change in online.php</p>
<p>Find:<br />
$stringIp = $_SERVER['REMOTE_ADDR'];<br />
$intIp = ip2long($stringIp);</p>
<p>Replace:<br />
$stringIp = $_SERVER['REMOTE_ADDR'];</p>
<p>Find:<br />
1 FROM tz_who_is_online WHERE ip=&#8221;.$intIp</p>
<p>Replace<br />
1 FROM tz_who_is_online WHERE ip = INET_ATON(&#8220;.$stringIp.&#8221;)&#8221;</p>
<p>Find:<br />
VALUES(&#8220;.$intIp.&#8221;,&#8217;&#8221;.$city.&#8221;&#8216;,</p>
<p>Replace:<br />
VALUES(INET_ATON(&#8220;.$stringIp.&#8221;),&#8217;&#8221;.$city.&#8221;&#8216;,</p>
<p>Find:<br />
dt=NOW() WHERE ip=&#8221;.$intIp</p>
<p>Replace:<br />
dt=NOW() WHERE ip = INET_ATON(&#8220;.$stringIp.&#8221;)&#8221;</p>
<p>Again, thanks for sharing, I made a plugin for <a href="http://www.jakcms.com" rel="nofollow">JAKCMS</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bolarinwa Olakunle</title>
		<link>http://tutorialzine.com/2010/03/who-is-online-widget-php-mysql-jquery/#comment-14833</link>
		<dc:creator>Bolarinwa Olakunle</dc:creator>
		<pubDate>Fri, 28 Jan 2011 10:30:40 +0000</pubDate>
		<guid isPermaLink="false">http://tutorialzine.com/?p=744#comment-14833</guid>
		<description>This is a lovely Tut!. Thank You so much</description>
		<content:encoded><![CDATA[<p>This is a lovely Tut!. Thank You so much</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joseph</title>
		<link>http://tutorialzine.com/2010/03/who-is-online-widget-php-mysql-jquery/#comment-12929</link>
		<dc:creator>Joseph</dc:creator>
		<pubDate>Fri, 19 Nov 2010 12:21:50 +0000</pubDate>
		<guid isPermaLink="false">http://tutorialzine.com/?p=744#comment-12929</guid>
		<description>That is really cool! 

thanks for the great tutorial :)</description>
		<content:encoded><![CDATA[<p>That is really cool! </p>
<p>thanks for the great tutorial :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: script indir</title>
		<link>http://tutorialzine.com/2010/03/who-is-online-widget-php-mysql-jquery/#comment-8578</link>
		<dc:creator>script indir</dc:creator>
		<pubDate>Fri, 30 Jul 2010 06:59:41 +0000</pubDate>
		<guid isPermaLink="false">http://tutorialzine.com/?p=744#comment-8578</guid>
		<description>really cool script.

thanks</description>
		<content:encoded><![CDATA[<p>really cool script.</p>
<p>thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hasan</title>
		<link>http://tutorialzine.com/2010/03/who-is-online-widget-php-mysql-jquery/#comment-8496</link>
		<dc:creator>Hasan</dc:creator>
		<pubDate>Thu, 29 Jul 2010 10:19:11 +0000</pubDate>
		<guid isPermaLink="false">http://tutorialzine.com/?p=744#comment-8496</guid>
		<description>No other words to explain about this tutorial... your company always rocks... am the great fan of your website.... keep it up....</description>
		<content:encoded><![CDATA[<p>No other words to explain about this tutorial&#8230; your company always rocks&#8230; am the great fan of your website&#8230;. keep it up&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Axinte Adrian</title>
		<link>http://tutorialzine.com/2010/03/who-is-online-widget-php-mysql-jquery/#comment-7511</link>
		<dc:creator>Axinte Adrian</dc:creator>
		<pubDate>Tue, 13 Jul 2010 20:11:07 +0000</pubDate>
		<guid isPermaLink="false">http://tutorialzine.com/?p=744#comment-7511</guid>
		<description>and this one is really good!
I have 2 use it ;)</description>
		<content:encoded><![CDATA[<p>and this one is really good!<br />
I have 2 use it ;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: oyun oyna</title>
		<link>http://tutorialzine.com/2010/03/who-is-online-widget-php-mysql-jquery/#comment-7430</link>
		<dc:creator>oyun oyna</dc:creator>
		<pubDate>Mon, 12 Jul 2010 04:48:12 +0000</pubDate>
		<guid isPermaLink="false">http://tutorialzine.com/?p=744#comment-7430</guid>
		<description>really cool script. 

thanks</description>
		<content:encoded><![CDATA[<p>really cool script. </p>
<p>thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mihai</title>
		<link>http://tutorialzine.com/2010/03/who-is-online-widget-php-mysql-jquery/#comment-6609</link>
		<dc:creator>Mihai</dc:creator>
		<pubDate>Thu, 17 Jun 2010 08:49:31 +0000</pubDate>
		<guid isPermaLink="false">http://tutorialzine.com/?p=744#comment-6609</guid>
		<description>Cool script, but on a heavy traffic sit will kill your database server  instantly!</description>
		<content:encoded><![CDATA[<p>Cool script, but on a heavy traffic sit will kill your database server  instantly!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using apc
Page Caching using apc
Object Caching 355/356 objects using apc
Content Delivery Network via cdn.tutorialzine.com

Served from: tutorialzine.com @ 2012-02-08 14:59:17 -->
