PHP IF Statment Based On Geo Location?
<p>Is there a way to do a PHP If statement based on the persons location?</p>

<p>My problem comes down to Amazon Affiliate links. The link to buy a DVD on Amazon.co.uk is different to the one to buy from Amazon.com and I want a way to only show the correct one.</p>

<p>At the same time, If they aren't based in either country, then I don't want the link to show in the first place.</p>

<p>Example:</p>

<pre><code>If Location = UK; print "amazon-UK-link"
If Location = US; print "amazon-US-link"
If location = None of the above; print nothing
</code></pre>
