Hai friends I need user country when they visit my php website. According to his country I have to do some checking when they upload some bulk informations.
How can I find the visitor country using php.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
PHP has no built-in method to determine the location of a website visitor.
The best you can do automatically is to look up their IP address in an IP-to-location database.
You can get one for free from MaxMind. They have a PHP API available for using the database.