<?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 Get the Geographic Location of an IP Address</title>
	<atom:link href="http://phpstarter.net/2008/12/how-to-get-the-geographic-location-of-an-ip-address/feed/" rel="self" type="application/rss+xml" />
	<link>http://phpstarter.net/2008/12/how-to-get-the-geographic-location-of-an-ip-address/</link>
	<description>PHP Tips &#38; Tools From Starters to Experts</description>
	<lastBuildDate>Sun, 15 Jan 2012 02:04:09 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<item>
		<title>By: Andrew</title>
		<link>http://phpstarter.net/2008/12/how-to-get-the-geographic-location-of-an-ip-address/comment-page-1/#comment-784</link>
		<dc:creator>Andrew</dc:creator>
		<pubDate>Fri, 21 Oct 2011 17:59:42 +0000</pubDate>
		<guid isPermaLink="false">http://phpstarter.net/?p=138#comment-784</guid>
		<description>Ya, it&#039;s a large table to search through.  You may want to try indexing the IpNum columns.  On one of my websites, I ended up caching the location in a smaller table of the frequently accessed IP addresses, so only new visitors hit a slow page, and only once.</description>
		<content:encoded><![CDATA[<p>Ya, it&#8217;s a large table to search through.  You may want to try indexing the IpNum columns.  On one of my websites, I ended up caching the location in a smaller table of the frequently accessed IP addresses, so only new visitors hit a slow page, and only once.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: GalTa</title>
		<link>http://phpstarter.net/2008/12/how-to-get-the-geographic-location-of-an-ip-address/comment-page-1/#comment-783</link>
		<dc:creator>GalTa</dc:creator>
		<pubDate>Fri, 21 Oct 2011 17:49:23 +0000</pubDate>
		<guid isPermaLink="false">http://phpstarter.net/?p=138#comment-783</guid>
		<description>gr8, 10x !!!

Gr8 article. like it, and it helped me a lot. 

what can i do in order to make if &lt;strong&gt;faster&lt;/strong&gt;?
I&#039;m talking about the first SQL working with Range: &quot;&lt;em&gt;&lt;strong&gt;SELECT locId FROM CityBlocks WHERE $ip BETWEEN startIpNum AND endIpNum LIMIT 1&lt;/strong&gt;&lt;/em&gt;&quot;

I have &lt;strong&gt;index&lt;/strong&gt; on startIpNum and endIpNum, but it&#039;s taking something like 10-15 seconds !!!
Any idea? someone?

10x, 
GalTa.



 </description>
		<content:encoded><![CDATA[<p>gr8, 10x !!!</p>
<p>Gr8 article. like it, and it helped me a lot. </p>
<p>what can i do in order to make if <strong>faster</strong>?<br />
I&#8217;m talking about the first SQL working with Range: &#8220;<em><strong>SELECT locId FROM CityBlocks WHERE $ip BETWEEN startIpNum AND endIpNum LIMIT 1</strong></em>&#8221;</p>
<p>I have <strong>index</strong> on startIpNum and endIpNum, but it&#8217;s taking something like 10-15 seconds !!!<br />
Any idea? someone?</p>
<p>10x, <br />
GalTa.</p>
<p> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: fastreplies</title>
		<link>http://phpstarter.net/2008/12/how-to-get-the-geographic-location-of-an-ip-address/comment-page-1/#comment-550</link>
		<dc:creator>fastreplies</dc:creator>
		<pubDate>Sat, 05 Jun 2010 03:01:22 +0000</pubDate>
		<guid isPermaLink="false">http://phpstarter.net/?p=138#comment-550</guid>
		<description>database.php says: Connected successfully but that is as far as we can get.

What is the problem?

cheers</description>
		<content:encoded><![CDATA[<p>database.php says: Connected successfully but that is as far as we can get.</p>
<p>What is the problem?</p>
<p>cheers</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: diego</title>
		<link>http://phpstarter.net/2008/12/how-to-get-the-geographic-location-of-an-ip-address/comment-page-1/#comment-371</link>
		<dc:creator>diego</dc:creator>
		<pubDate>Wed, 21 Oct 2009 04:48:29 +0000</pubDate>
		<guid isPermaLink="false">http://phpstarter.net/?p=138#comment-371</guid>
		<description>Fatal error: Call to undefined function db_connect() in geolocation.php on line 4

geolocation.php: your geolocation sample

line 03 -&gt; require(&#039;conectar.php&#039;);

_________________________________________

conectar.php:



What could i change to use the sample exemple???

very thx!!!</description>
		<content:encoded><![CDATA[<p>Fatal error: Call to undefined function db_connect() in geolocation.php on line 4</p>
<p>geolocation.php: your geolocation sample</p>
<p>line 03 -&gt; require(&#8216;conectar.php&#8217;);</p>
<p>_________________________________________</p>
<p>conectar.php:</p>
<p>What could i change to use the sample exemple???</p>
<p>very thx!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: El Khalifa Karim</title>
		<link>http://phpstarter.net/2008/12/how-to-get-the-geographic-location-of-an-ip-address/comment-page-1/#comment-366</link>
		<dc:creator>El Khalifa Karim</dc:creator>
		<pubDate>Fri, 02 Oct 2009 07:50:04 +0000</pubDate>
		<guid isPermaLink="false">http://phpstarter.net/?p=138#comment-366</guid>
		<description>In the Geolocation Sample code,
you can do the same with only one SQL request like this

...
line 10 :  SELECT * FROM CityLocation WHERE locId = (SELECT locId FROM CityBlocks WHERE $ip BETWEEN startIpNum AND endIpNum) LIMIT 1;

you can delete line 11 -&gt; 16
...</description>
		<content:encoded><![CDATA[<p>In the Geolocation Sample code,<br />
you can do the same with only one SQL request like this</p>
<p>&#8230;<br />
line 10 :  SELECT * FROM CityLocation WHERE locId = (SELECT locId FROM CityBlocks WHERE $ip BETWEEN startIpNum AND endIpNum) LIMIT 1;</p>
<p>you can delete line 11 -&gt; 16<br />
&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://phpstarter.net/2008/12/how-to-get-the-geographic-location-of-an-ip-address/comment-page-1/#comment-343</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Tue, 21 Jul 2009 14:04:00 +0000</pubDate>
		<guid isPermaLink="false">http://phpstarter.net/?p=138#comment-343</guid>
		<description>Andrew,

Thanks for this article - best and most comprehensive post that I have found on the subject.  Cheers.</description>
		<content:encoded><![CDATA[<p>Andrew,</p>
<p>Thanks for this article &#8211; best and most comprehensive post that I have found on the subject.  Cheers.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

