<?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: How to Geolocate Visitors Using an IP-to-Country Database</title>
	<atom:link href="http://www.ardamis.com/2008/01/27/how-to-geolocate-visitors-using-an-ip-to-country-database/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ardamis.com/2008/01/27/how-to-geolocate-visitors-using-an-ip-to-country-database/</link>
	<description>Ardamis is a blog about web development and technology in general.</description>
	<lastBuildDate>Fri, 03 Feb 2012 03:06:09 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Bijayani</title>
		<link>http://www.ardamis.com/2008/01/27/how-to-geolocate-visitors-using-an-ip-to-country-database/#comment-27027</link>
		<dc:creator>Bijayani</dc:creator>
		<pubDate>Tue, 02 Feb 2010 06:40:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.ardamis.com/2008/01/27/how-to-geolocate-visitors-using-an-ip-to-country-database/#comment-27027</guid>
		<description>Hi,

I happened to see your post find it quite informative. I would like to share a link where a software engineer has shared a tip on &quot;How to get geographical location of an IP address in PHP?&quot;. I am sharing it just for the knowledge purpose. 

Here is the link:
http://www.mindfiresolutions.com/How-to-get-geographical-location-of-an-IP-address-in-PHP-815.php

Hope you find it useful and of assistance.

Thanks,
Bijayani</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I happened to see your post find it quite informative. I would like to share a link where a software engineer has shared a tip on &#8220;How to get geographical location of an IP address in PHP?&#8221;. I am sharing it just for the knowledge purpose. </p>
<p>Here is the link:<br />
<a href="http://www.mindfiresolutions.com/How-to-get-geographical-location-of-an-IP-address-in-PHP-815.php" rel="nofollow">http://www.mindfiresolutions.com/How-to-get-geographical-location-of-an-IP-address-in-PHP-815.php</a></p>
<p>Hope you find it useful and of assistance.</p>
<p>Thanks,<br />
Bijayani</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gil</title>
		<link>http://www.ardamis.com/2008/01/27/how-to-geolocate-visitors-using-an-ip-to-country-database/#comment-24187</link>
		<dc:creator>Gil</dc:creator>
		<pubDate>Sun, 29 Nov 2009 07:49:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.ardamis.com/2008/01/27/how-to-geolocate-visitors-using-an-ip-to-country-database/#comment-24187</guid>
		<description>so if IP isn&#039;t in list example i go from localhost i get result ip not found etc. but on top of page i get error:

Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in C:\wamp\www\ipp.php on line 8

8 line defines: $ccode_array = mysql_fetch_array($country_exec);


any help ?! :/</description>
		<content:encoded><![CDATA[<p>so if IP isn&#8217;t in list example i go from localhost i get result ip not found etc. but on top of page i get error:</p>
<p>Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in C:\wamp\www\ipp.php on line 8</p>
<p>8 line defines: $ccode_array = mysql_fetch_array($country_exec);</p>
<p>any help ?! :/</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pix</title>
		<link>http://www.ardamis.com/2008/01/27/how-to-geolocate-visitors-using-an-ip-to-country-database/#comment-20007</link>
		<dc:creator>Pix</dc:creator>
		<pubDate>Fri, 11 Sep 2009 07:55:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.ardamis.com/2008/01/27/how-to-geolocate-visitors-using-an-ip-to-country-database/#comment-20007</guid>
		<description>Great article.  sorry if it s a lame Q - but do oyu have an example where eg .. different pricing is loaded into the same div according to country.. this would be a great little trick to know</description>
		<content:encoded><![CDATA[<p>Great article.  sorry if it s a lame Q &#8211; but do oyu have an example where eg .. different pricing is loaded into the same div according to country.. this would be a great little trick to know</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ardamis</title>
		<link>http://www.ardamis.com/2008/01/27/how-to-geolocate-visitors-using-an-ip-to-country-database/#comment-18560</link>
		<dc:creator>ardamis</dc:creator>
		<pubDate>Sun, 05 Jul 2009 11:18:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.ardamis.com/2008/01/27/how-to-geolocate-visitors-using-an-ip-to-country-database/#comment-18560</guid>
		<description>Is the script giving you an error?  I would need to know more about
what&#039;s happening before I could tell you what&#039;s going wrong.

But there&#039;s actually a method for using Google&#039;s Ajax API to identify the visitor&#039;s
location, down to the city level.  This method is probably more accurate and useful, and does not require you to update a database.

Read more at
http://code.google.com/apis/ajax/documentation/#ClientLocation 

That&#039;s what I would use instead of this PHP/MySQL method.</description>
		<content:encoded><![CDATA[<p>Is the script giving you an error?  I would need to know more about<br />
what&#8217;s happening before I could tell you what&#8217;s going wrong.</p>
<p>But there&#8217;s actually a method for using Google&#8217;s Ajax API to identify the visitor&#8217;s<br />
location, down to the city level.  This method is probably more accurate and useful, and does not require you to update a database.</p>
<p>Read more at<br />
<a href="http://code.google.com/apis/ajax/documentation/#ClientLocation" rel="nofollow">http://code.google.com/apis/ajax/documentation/#ClientLocation</a> </p>
<p>That&#8217;s what I would use instead of this PHP/MySQL method.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lobo</title>
		<link>http://www.ardamis.com/2008/01/27/how-to-geolocate-visitors-using-an-ip-to-country-database/#comment-18559</link>
		<dc:creator>Lobo</dc:creator>
		<pubDate>Sun, 05 Jul 2009 10:04:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.ardamis.com/2008/01/27/how-to-geolocate-visitors-using-an-ip-to-country-database/#comment-18559</guid>
		<description>Great tutorial! Thank you.

hey I&#039;m trying to use this script to redirect people to specific page if the come from CHINA and I found this script http://www.ip2location.com/articles/article2.htm . I follow your tutorial step by step and I try this is script but it seems that don&#039;t work. Any ideas why? you have a forum/</description>
		<content:encoded><![CDATA[<p>Great tutorial! Thank you.</p>
<p>hey I&#8217;m trying to use this script to redirect people to specific page if the come from CHINA and I found this script <a href="http://www.ip2location.com/articles/article2.htm" rel="nofollow">http://www.ip2location.com/articles/article2.htm</a> . I follow your tutorial step by step and I try this is script but it seems that don&#8217;t work. Any ideas why? you have a forum/</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: s3v</title>
		<link>http://www.ardamis.com/2008/01/27/how-to-geolocate-visitors-using-an-ip-to-country-database/#comment-17486</link>
		<dc:creator>s3v</dc:creator>
		<pubDate>Sun, 04 Jan 2009 05:44:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.ardamis.com/2008/01/27/how-to-geolocate-visitors-using-an-ip-to-country-database/#comment-17486</guid>
		<description>Thanks a lot for this great clean tutorial!

Kind regard from Germany :o)</description>
		<content:encoded><![CDATA[<p>Thanks a lot for this great clean tutorial!</p>
<p>Kind regard from Germany :o)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bypasser</title>
		<link>http://www.ardamis.com/2008/01/27/how-to-geolocate-visitors-using-an-ip-to-country-database/#comment-17342</link>
		<dc:creator>bypasser</dc:creator>
		<pubDate>Wed, 17 Dec 2008 19:32:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.ardamis.com/2008/01/27/how-to-geolocate-visitors-using-an-ip-to-country-database/#comment-17342</guid>
		<description>&lt;code&gt;
mysql&gt;; LOAD DATA LOCAL INFILE &#039;ip-to-country.csv&#039;
    -&gt; INTO TABLE ip2country
    -&gt;; FIELDS TERMINATED BY &quot;,&quot;
    -&gt; OPTIONALLY ENCLOSED BY &quot;&quot;&quot;&quot;
    -&gt; LINES TERMINATED BY &quot;\n&quot;;
Query OK, 87810 rows affected, 65535 warnings (0.18 sec)
Records: 87810  Deleted: 0  Skipped: 0  Warnings: 116784
&lt;/code&gt;

hope it helps.</description>
		<content:encoded><![CDATA[<p><code><br />
mysql>; LOAD DATA LOCAL INFILE 'ip-to-country.csv'<br />
    -> INTO TABLE ip2country<br />
    ->; FIELDS TERMINATED BY ","<br />
    -> OPTIONALLY ENCLOSED BY """"<br />
    -> LINES TERMINATED BY "\n";<br />
Query OK, 87810 rows affected, 65535 warnings (0.18 sec)<br />
Records: 87810  Deleted: 0  Skipped: 0  Warnings: 116784<br />
</code></p>
<p>hope it helps.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bypasser</title>
		<link>http://www.ardamis.com/2008/01/27/how-to-geolocate-visitors-using-an-ip-to-country-database/#comment-17341</link>
		<dc:creator>bypasser</dc:creator>
		<pubDate>Wed, 17 Dec 2008 19:30:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.ardamis.com/2008/01/27/how-to-geolocate-visitors-using-an-ip-to-country-database/#comment-17341</guid>
		<description>on ssh mysql command this is what I use:
&lt;code&gt;
LOAD DATA LOCAL INFILE &#039;ip-to-country.csv&#039; 
INTO TABLE ip2country
FIELDS TERMINATED BY &quot;,&quot;
OPTIONALLY ENCLOSED BY &quot;&quot;&quot;&quot;
LINES TERMINATED BY &quot;\n&quot;;	
&lt;/code&gt;
ip2country.csv is at root directory.
thanks for the code :)</description>
		<content:encoded><![CDATA[<p>on ssh mysql command this is what I use:<br />
<code><br />
LOAD DATA LOCAL INFILE 'ip-to-country.csv'<br />
INTO TABLE ip2country<br />
FIELDS TERMINATED BY ","<br />
OPTIONALLY ENCLOSED BY """"<br />
LINES TERMINATED BY "\n";<br />
</code><br />
ip2country.csv is at root directory.<br />
thanks for the code :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ardamis</title>
		<link>http://www.ardamis.com/2008/01/27/how-to-geolocate-visitors-using-an-ip-to-country-database/#comment-17148</link>
		<dc:creator>ardamis</dc:creator>
		<pubDate>Sun, 02 Nov 2008 23:23:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.ardamis.com/2008/01/27/how-to-geolocate-visitors-using-an-ip-to-country-database/#comment-17148</guid>
		<description>While I haven&#039;t tried it myself, it looks like the Google API offers a much easier way of geo-locating visitors.

&quot;When an application makes used of the AJAX API loader, the loader attempts to geo locate the client based on its IP address. If this process succeeds, the client&#039;s location, scoped to the metro level, is made available in the &lt;code&gt;google.loader.ClientLocation&lt;/code&gt; property. If the process fails to find a match, this property is set to null.&quot;

&lt;a href=&quot;http://code.google.com/apis/ajax/documentation/#ClientLocation&quot; rel=&quot;nofollow&quot;&gt;http://code.google.com/apis/ajax/documentation/#ClientLocation&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>While I haven&#8217;t tried it myself, it looks like the Google API offers a much easier way of geo-locating visitors.</p>
<p>&#8220;When an application makes used of the AJAX API loader, the loader attempts to geo locate the client based on its IP address. If this process succeeds, the client&#8217;s location, scoped to the metro level, is made available in the <code>google.loader.ClientLocation</code> property. If the process fails to find a match, this property is set to null.&#8221;</p>
<p><a href="http://code.google.com/apis/ajax/documentation/#ClientLocation" rel="nofollow">http://code.google.com/apis/ajax/documentation/#ClientLocation</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://www.ardamis.com/2008/01/27/how-to-geolocate-visitors-using-an-ip-to-country-database/#comment-17143</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Fri, 31 Oct 2008 17:12:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.ardamis.com/2008/01/27/how-to-geolocate-visitors-using-an-ip-to-country-database/#comment-17143</guid>
		<description>is there a way to find out which province in canada the user is surfing from?</description>
		<content:encoded><![CDATA[<p>is there a way to find out which province in canada the user is surfing from?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

