Get location details using visitor’s IP

Sometimes we want to display on visitor’s screen their location or local time or their country flag or may be we have to display our site content in their specific language.

So how we can do that?

Yes exactly using visitor’s IP address, every web application developer knows that we can do this using visitor’s IP address and we can easily identify the IP address, but what about the other details, county, language, timezone etc.

I have a very good solution for this need. Use this URL

A wonderful free service provided by it will return an XML with all the required details.

I hope it will help you.

Cheers! keep commenting, I like your comments.

Posted in PHP

One thought on “Get location details using visitor’s IP

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s