I want to put something in a PHP script that will tell if a viewer is from Canada or the US or some other country? I need to put some Amazon links on a site, and want to customize it to go to the correct Amazon site for the country. I'm looking for a solution that is recommended I found, for example this one http://ip-to-country.webhosting.info/node/view/6 - which requires downloading a reference file.
Use Phpadsnew, there's a function on there to display certain adverts via the IP address and/or Country type..I use it on my sites. hope this helps.
Yes, that might help, since I already have it installed, but have not had time to play with it and find all the features. I have it running on two of my sites, but since I installed in in a shared location, I can easily add it to this site. However a quick look - it seems you have to buy access to IP2Country Database - which is $50+$170 per year