<?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: Geotargeting with PHP : A complete guide</title>
	<atom:link href="http://www.blogstorm.co.uk/geotargeting-with-php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.blogstorm.co.uk/geotargeting-with-php/</link>
	<description>Internet marketing and search engine optimisation</description>
	<lastBuildDate>Fri, 27 Jan 2012 13:42:03 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
	<item>
		<title>By: Frank</title>
		<link>http://www.blogstorm.co.uk/geotargeting-with-php/#comment-467609</link>
		<dc:creator>Frank</dc:creator>
		<pubDate>Mon, 26 Sep 2011 18:29:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.blogstorm.co.uk/newblog/geotargeting-with-php/#comment-467609</guid>
		<description>...also, have you heard anything from this plugin:
http://thewordpress.net/plugins/geotargeting/

The site looks rather fake or like those selling &quot;get millionaire overnight&quot; ebooks, but that&#039;s what I&#039;ve found on google so far. I would appreciate your opinion.</description>
		<content:encoded><![CDATA[<p>&#8230;also, have you heard anything from this plugin:<br />
<a href="http://thewordpress.net/plugins/geotargeting/" rel="nofollow">http://thewordpress.net/plugins/geotargeting/</a></p>
<p>The site looks rather fake or like those selling &#8220;get millionaire overnight&#8221; ebooks, but that&#8217;s what I&#8217;ve found on google so far. I would appreciate your opinion.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Frank</title>
		<link>http://www.blogstorm.co.uk/geotargeting-with-php/#comment-467604</link>
		<dc:creator>Frank</dc:creator>
		<pubDate>Mon, 26 Sep 2011 18:27:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.blogstorm.co.uk/newblog/geotargeting-with-php/#comment-467604</guid>
		<description>Hi,

I&#039;m interested in geotargeting and would like to ask you two questions: Can this php code work alongside w3 total cache plugin? I was told both are incompatible...
Also, I want to geotarget countries _and_ cities. Can this be done?

Thanks in advance!</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I&#8217;m interested in geotargeting and would like to ask you two questions: Can this php code work alongside w3 total cache plugin? I was told both are incompatible&#8230;<br />
Also, I want to geotarget countries _and_ cities. Can this be done?</p>
<p>Thanks in advance!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jan</title>
		<link>http://www.blogstorm.co.uk/geotargeting-with-php/#comment-457441</link>
		<dc:creator>Jan</dc:creator>
		<pubDate>Wed, 14 Sep 2011 06:40:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.blogstorm.co.uk/newblog/geotargeting-with-php/#comment-457441</guid>
		<description>Very nice. I also wrote an article geotargeting visitors with PHP, MySQL, and the free WEB Net 77 IP-2-Contry database -- without using cookies though:

http://www.heidoc.net/joomla/technology-science/php-and-web-design/62-geolocating-and-geotargeting-your-visitors

Combining these two should yield a pretty good process.</description>
		<content:encoded><![CDATA[<p>Very nice. I also wrote an article geotargeting visitors with PHP, MySQL, and the free WEB Net 77 IP-2-Contry database &#8212; without using cookies though:</p>
<p><a href="http://www.heidoc.net/joomla/technology-science/php-and-web-design/62-geolocating-and-geotargeting-your-visitors" rel="nofollow">http://www.heidoc.net/joomla/technology-science/php-and-web-design/62-geolocating-and-geotargeting-your-visitors</a></p>
<p>Combining these two should yield a pretty good process.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sam</title>
		<link>http://www.blogstorm.co.uk/geotargeting-with-php/#comment-288446</link>
		<dc:creator>Sam</dc:creator>
		<pubDate>Tue, 28 Sep 2010 23:38:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.blogstorm.co.uk/newblog/geotargeting-with-php/#comment-288446</guid>
		<description>Evan: I use Lambda GeoIP as well. Its pretty awesome for what it does. The crappy part is that its PHP and doesn&#039;t have Javascript built in. If you want to use it in an ASP or Ruby script, you&#039;ll have to hack up some solution.

Really the main, singly most important thing, is being able to find the nearest city of a certain population. It is imperative to make it believable to the user by not displaying whatever podunk town they happen to live in.</description>
		<content:encoded><![CDATA[<p>Evan: I use Lambda GeoIP as well. Its pretty awesome for what it does. The crappy part is that its PHP and doesn&#8217;t have Javascript built in. If you want to use it in an ASP or Ruby script, you&#8217;ll have to hack up some solution.</p>
<p>Really the main, singly most important thing, is being able to find the nearest city of a certain population. It is imperative to make it believable to the user by not displaying whatever podunk town they happen to live in.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Evan</title>
		<link>http://www.blogstorm.co.uk/geotargeting-with-php/#comment-286884</link>
		<dc:creator>Evan</dc:creator>
		<pubDate>Fri, 24 Sep 2010 00:20:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.blogstorm.co.uk/newblog/geotargeting-with-php/#comment-286884</guid>
		<description>I used lambda GeoIP (lambdageoip.com), it was $20 and only took one one of code.</description>
		<content:encoded><![CDATA[<p>I used lambda GeoIP (lambdageoip.com), it was $20 and only took one one of code.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: webous</title>
		<link>http://www.blogstorm.co.uk/geotargeting-with-php/#comment-267299</link>
		<dc:creator>webous</dc:creator>
		<pubDate>Fri, 16 Jul 2010 06:31:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.blogstorm.co.uk/newblog/geotargeting-with-php/#comment-267299</guid>
		<description>I have just released (commercial, but free licenses available) geotargeting plugin for WordPress:  &lt;a href=&quot;http://thewordpress.net/plugins/geotargeting/&quot; rel=&quot;nofollow&quot;&gt;http://thewordpress.net/plugins/geotargeting/&lt;/a&gt; 
 
Basically it&#039;s just a wrapper around free maxmind database, but with nice wordpress integration: country-based contents, redirects by country, country personalization (country name &amp; flag). </description>
		<content:encoded><![CDATA[<p>I have just released (commercial, but free licenses available) geotargeting plugin for WordPress:  <a href="http://thewordpress.net/plugins/geotargeting/" rel="nofollow">http://thewordpress.net/plugins/geotargeting/</a> </p>
<p>Basically it&#39;s just a wrapper around free maxmind database, but with nice wordpress integration: country-based contents, redirects by country, country personalization (country name &amp; flag).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://www.blogstorm.co.uk/geotargeting-with-php/#comment-149868</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Fri, 29 May 2009 20:16:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.blogstorm.co.uk/newblog/geotargeting-with-php/#comment-149868</guid>
		<description>MaxMind provide some sample code on their website: http://www.maxmind.com/app/csv

I would probably wrap the code they provide in a function with the same name as the one that Patrick used in the example so you can use it like this:

geoip_country_code_by_addr($gi, $REMOTE_ADDR);

MaxMind recommend for speed an disk space usage that their binary format and APIs be used rather than importing into MySQL.  I&#039;m dubious that this would be faster but since it&#039;s at least two years since I did any benchmarks on this I can&#039;t be sure.  Be sure to leave a comment if you do any benchmarking.

One useful hint if you are importing this into a MySQL database: Don&#039;t forget to make the IP number fields BIGINTs rather than just plain INTs.  Otherwise the last 1/3rd of the IP address space will all map to the same location.</description>
		<content:encoded><![CDATA[<p>MaxMind provide some sample code on their website: <a href="http://www.maxmind.com/app/csv" rel="nofollow">http://www.maxmind.com/app/csv</a></p>
<p>I would probably wrap the code they provide in a function with the same name as the one that Patrick used in the example so you can use it like this:</p>
<p>geoip_country_code_by_addr($gi, $REMOTE_ADDR);</p>
<p>MaxMind recommend for speed an disk space usage that their binary format and APIs be used rather than importing into MySQL.  I&#8217;m dubious that this would be faster but since it&#8217;s at least two years since I did any benchmarks on this I can&#8217;t be sure.  Be sure to leave a comment if you do any benchmarking.</p>
<p>One useful hint if you are importing this into a MySQL database: Don&#8217;t forget to make the IP number fields BIGINTs rather than just plain INTs.  Otherwise the last 1/3rd of the IP address space will all map to the same location.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Martin</title>
		<link>http://www.blogstorm.co.uk/geotargeting-with-php/#comment-149831</link>
		<dc:creator>Martin</dc:creator>
		<pubDate>Fri, 29 May 2009 18:30:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.blogstorm.co.uk/newblog/geotargeting-with-php/#comment-149831</guid>
		<description>Okay, so once you install the database to MySQL. How do I only show content to Canadian and American visitors?</description>
		<content:encoded><![CDATA[<p>Okay, so once you install the database to MySQL. How do I only show content to Canadian and American visitors?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://www.blogstorm.co.uk/geotargeting-with-php/#comment-125730</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Fri, 13 Mar 2009 11:30:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.blogstorm.co.uk/newblog/geotargeting-with-php/#comment-125730</guid>
		<description>@Suzy Turnbull

Browsers send a language header with every request that is usually based on either the language setting in their OS or the version of the browser that the user downloaded.  As you mentioned, choosing a language based on a GeoIP lookup can be fraught with danger.  I travel a lot but I still only really know English, even when I&#039;m in Italy or Germany.  The language header can also provide fallback languages so if a user indicates that they know Spanish, Portuguese and English in that order, you can try to serve your site in which ever of those languages you have available but you should prefer languages that they know the best.

My language header currently looks like this, even when I am in another country:

&lt;code&gt;Accept-Language: en-us,en;q=0.5
&lt;/code&gt;

I really should change it to en-gb...</description>
		<content:encoded><![CDATA[<p>@Suzy Turnbull</p>
<p>Browsers send a language header with every request that is usually based on either the language setting in their OS or the version of the browser that the user downloaded.  As you mentioned, choosing a language based on a GeoIP lookup can be fraught with danger.  I travel a lot but I still only really know English, even when I&#8217;m in Italy or Germany.  The language header can also provide fallback languages so if a user indicates that they know Spanish, Portuguese and English in that order, you can try to serve your site in which ever of those languages you have available but you should prefer languages that they know the best.</p>
<p>My language header currently looks like this, even when I am in another country:</p>
<p><code>Accept-Language: en-us,en;q=0.5<br />
</code></p>
<p>I really should change it to en-gb&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: prices in US$ or EURO</title>
		<link>http://www.blogstorm.co.uk/geotargeting-with-php/#comment-112703</link>
		<dc:creator>prices in US$ or EURO</dc:creator>
		<pubDate>Wed, 11 Feb 2009 08:58:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.blogstorm.co.uk/newblog/geotargeting-with-php/#comment-112703</guid>
		<description>[...] and perform a conversion on the fly?    Here&#039;s a useful blog post that explains how it can be done: Geotargeting with PHP : A complete guide  [...]</description>
		<content:encoded><![CDATA[<p>[...] and perform a conversion on the fly?    Here&#8217;s a useful blog post that explains how it can be done: Geotargeting with PHP : A complete guide  [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

