<?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: GeoIP Country Location &#8211; PHP Script</title>
	<atom:link href="http://shockmarketer.com/geoip-country-location-php-script/feed/" rel="self" type="application/rss+xml" />
	<link>http://shockmarketer.com/geoip-country-location-php-script/</link>
	<description>SEO, PPC, media buying, advertising, marketing</description>
	<lastBuildDate>Thu, 29 Jul 2010 21:12:17 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Neal</title>
		<link>http://shockmarketer.com/geoip-country-location-php-script/comment-page-1/#comment-1768</link>
		<dc:creator>Neal</dc:creator>
		<pubDate>Fri, 26 Feb 2010 19:45:25 +0000</pubDate>
		<guid isPermaLink="false">http://shockmarketer.com/?p=154#comment-1768</guid>
		<description>it&#039;s not as good as 12script&#039;s Power Redirector, but free, thanks</description>
		<content:encoded><![CDATA[<p>it&#8217;s not as good as 12script&#8217;s Power Redirector, but free, thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shock Marketer</title>
		<link>http://shockmarketer.com/geoip-country-location-php-script/comment-page-1/#comment-1761</link>
		<dc:creator>Shock Marketer</dc:creator>
		<pubDate>Thu, 25 Feb 2010 16:46:34 +0000</pubDate>
		<guid isPermaLink="false">http://shockmarketer.com/?p=154#comment-1761</guid>
		<description>Go to line 503 of &quot;country-redirect.php&quot; and replace &quot;echo $country;&quot; with:
&lt;code&gt;if($country == &#039;UK&#039;)
{
header(&#039;Location: http://example.co.uk&#039;);
exit();
}
else if($country == &#039;US&#039;)
{
header(&#039;Location: http://example.com&#039;);
exit();
}&lt;/code&gt;

That should work - although I haven&#039;t used this script in quite a while.</description>
		<content:encoded><![CDATA[<p>Go to line 503 of &#8220;country-redirect.php&#8221; and replace &#8220;echo $country;&#8221; with:<br />
<code>if($country == 'UK')<br />
{<br />
header('Location: <a href="http://example.co.uk" rel="nofollow">http://example.co.uk</a>');<br />
exit();<br />
}<br />
else if($country == 'US')<br />
{<br />
header('Location: <a href="http://example.com" rel="nofollow">http://example.com</a>');<br />
exit();<br />
}</code></p>
<p>That should work &#8211; although I haven&#8217;t used this script in quite a while.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Seb</title>
		<link>http://shockmarketer.com/geoip-country-location-php-script/comment-page-1/#comment-1760</link>
		<dc:creator>Seb</dc:creator>
		<pubDate>Thu, 25 Feb 2010 15:46:05 +0000</pubDate>
		<guid isPermaLink="false">http://shockmarketer.com/?p=154#comment-1760</guid>
		<description>Hey Mike,

Thanks for your script. It&#039;s working like a charm!
I would like to redirect only UK and US visitors to different pages. The rest of them should continue with the current page.

What exactly should I add in the code?

Cheers,
Seb</description>
		<content:encoded><![CDATA[<p>Hey Mike,</p>
<p>Thanks for your script. It&#8217;s working like a charm!<br />
I would like to redirect only UK and US visitors to different pages. The rest of them should continue with the current page.</p>
<p>What exactly should I add in the code?</p>
<p>Cheers,<br />
Seb</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://shockmarketer.com/geoip-country-location-php-script/comment-page-1/#comment-1669</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Tue, 16 Feb 2010 19:02:49 +0000</pubDate>
		<guid isPermaLink="false">http://shockmarketer.com/?p=154#comment-1669</guid>
		<description>@Sam: It is possible. Creating automatic subdomains would be quite difficult though.</description>
		<content:encoded><![CDATA[<p>@Sam: It is possible. Creating automatic subdomains would be quite difficult though.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://shockmarketer.com/geoip-country-location-php-script/comment-page-1/#comment-1668</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Tue, 16 Feb 2010 18:59:57 +0000</pubDate>
		<guid isPermaLink="false">http://shockmarketer.com/?p=154#comment-1668</guid>
		<description>@Dan: If you read under &quot;more information&quot; you would have noticed that I wrote that I hardly programmed any of this. It&#039;s a compilation of classes. If you&#039;d like to improve the code and documentation for this free script, go ahead. The other users would likely appreciate it.</description>
		<content:encoded><![CDATA[<p>@Dan: If you read under &#8220;more information&#8221; you would have noticed that I wrote that I hardly programmed any of this. It&#8217;s a compilation of classes. If you&#8217;d like to improve the code and documentation for this free script, go ahead. The other users would likely appreciate it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan</title>
		<link>http://shockmarketer.com/geoip-country-location-php-script/comment-page-1/#comment-1667</link>
		<dc:creator>Dan</dc:creator>
		<pubDate>Tue, 16 Feb 2010 18:54:15 +0000</pubDate>
		<guid isPermaLink="false">http://shockmarketer.com/?p=154#comment-1667</guid>
		<description>I would just like to mention that although I give you kudos for effort, your code is very sloppy and no commenting or documentation.  Very poor implementation of your work sir.</description>
		<content:encoded><![CDATA[<p>I would just like to mention that although I give you kudos for effort, your code is very sloppy and no commenting or documentation.  Very poor implementation of your work sir.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Floris</title>
		<link>http://shockmarketer.com/geoip-country-location-php-script/comment-page-1/#comment-1539</link>
		<dc:creator>Floris</dc:creator>
		<pubDate>Fri, 05 Feb 2010 09:00:23 +0000</pubDate>
		<guid isPermaLink="false">http://shockmarketer.com/?p=154#comment-1539</guid>
		<description>Hi Mike,

I got a blank page as wel. My $_SERVER[&#039;REMOTE_ADDR&#039;] variable was a local/network address (192.168. etc). So it could not resolve it&#039;s country, duh! Be sure to run the script with a public address or simply upload the script to a webserver so it receives your public ip-address.

Floris</description>
		<content:encoded><![CDATA[<p>Hi Mike,</p>
<p>I got a blank page as wel. My $_SERVER['REMOTE_ADDR'] variable was a local/network address (192.168. etc). So it could not resolve it&#8217;s country, duh! Be sure to run the script with a public address or simply upload the script to a webserver so it receives your public ip-address.</p>
<p>Floris</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://shockmarketer.com/geoip-country-location-php-script/comment-page-1/#comment-1210</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Wed, 09 Dec 2009 05:44:24 +0000</pubDate>
		<guid isPermaLink="false">http://shockmarketer.com/?p=154#comment-1210</guid>
		<description>Hi, i installed but a blank page is being shown.</description>
		<content:encoded><![CDATA[<p>Hi, i installed but a blank page is being shown.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sam</title>
		<link>http://shockmarketer.com/geoip-country-location-php-script/comment-page-1/#comment-940</link>
		<dc:creator>Sam</dc:creator>
		<pubDate>Fri, 16 Oct 2009 21:33:43 +0000</pubDate>
		<guid isPermaLink="false">http://shockmarketer.com/?p=154#comment-940</guid>
		<description>Can this be made to only look at the United States and geocode the States like Colorado, Florida, Etc. and send the users to a sub domain name if they in Colorado they would be sent to http://co.mydomain.com/</description>
		<content:encoded><![CDATA[<p>Can this be made to only look at the United States and geocode the States like Colorado, Florida, Etc. and send the users to a sub domain name if they in Colorado they would be sent to <a href="http://co.mydomain.com/" rel="nofollow">http://co.mydomain.com/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://shockmarketer.com/geoip-country-location-php-script/comment-page-1/#comment-833</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Wed, 26 Aug 2009 17:37:21 +0000</pubDate>
		<guid isPermaLink="false">http://shockmarketer.com/?p=154#comment-833</guid>
		<description>@sentih: Here&#039;s detailed instructions on how PHP redirects work: http://us2.php.net/manual/en/function.header.php</description>
		<content:encoded><![CDATA[<p>@sentih: Here&#8217;s detailed instructions on how PHP redirects work: <a href="http://us2.php.net/manual/en/function.header.php" rel="nofollow">http://us2.php.net/manual/en/function.header.php</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>
