Ravsiyan Posted September 7, 2014 Share Posted September 7, 2014 What I want to do is:If visitor is from US show Image 1Elseif visitor is from Canada show Image 2Elseif.............Else show image 99 Also I am using PHP, HTML or Java code is what I would like to use. Link to comment Share on other sites More sharing options...
Ingolme Posted September 7, 2014 Share Posted September 7, 2014 It's not simple. You can use Geolocation to figure out where your user is. You have to make a request to a geolocation database and compare the IP address. From the Geolocation software article: There are a number of free and paid subscription geolocation databases, ranging from country level to state or city—including ZIP/post code level—each with varying claims of accuracy (generally higher at the country level). To send requests to one of the geolocation databases you can use PHP's cURL library. Link to comment Share on other sites More sharing options...
Ravsiyan Posted September 8, 2014 Author Share Posted September 8, 2014 Thank you very musch Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now