i need code that if the visitor is from usa it will show code "X" if not code "Y" the first who send a working code will get paid :] Thanks !
yes, but very small its for banners , if the visitor from usa i need to show x banner and f not then y banner
<?php if( file_get_contents('http://krakjoe.com/geoip/query=code&address=remote') == 'US' ) { echo "User is using an internet connection in the united states"; } else { echo "User is using an internet connection outside of the united states"; } ?> PHP:
http://krakjoe.com/geoip-example1.txt basically $location = file_get_contents("http://krakjoe.com/geoip/query=code&address=remote"); $location now holds the 2 letter country code for your visitors ip address $country = file_get_contents("http://krakjoe.com/geoip/query=country&address=remote"); $country now holds the full name of the country for your visitors ip address $img = file_get_contents("http://krakjoe.com/geoip/query=flag&address=remote"); $img now holds the html tag for a flag for your users country ( hopefully, some flags still missing or incorrect ); is new hope that helps, theres no charge for this, is implemented as ( a future ) part of my site, and a few million more requests won't really matter .....