Page 1 of 1

How to get country of client

Posted: Thu Jun 19, 2008 2:59 am
by mukul_chou
Hello,
How can I get the country information of a user of my site. I know this to happen. For example
when I open google.com in the displayed page it gives a link of 'google india' for, I am browsing from India. Same is true for Yahoo. Also in some other site where there is a form to fill in I found in some cases the Country = India already chosen for me. But I can not remember if that was a php site.

Another Issue is,is there any way to obtain the mac address of the client machine through php?

Re: How to get country of client

Posted: Thu Jun 19, 2008 3:12 am
by onion2k
You can get the country from the user's IP address with the Maxmind database.. http://www.maxmind.com/app/geoip_country

You can't get the user's MAC address. And there's no good reason for you to want it anyway.