|All requests||>||What is the best PHP visitor location...||>||Request new recommendation||>||Featured requests||>||No recommendations|
by bocha lee - 8 years ago (2015-02-21)
I want to find the visitor users IP address, latitude and longitude to in a database.
new requesters could try this, it is simple and it works fine...
I upload my one class where I receive information form visitors of my site. You can get information detailed information by IP and USER AGENT and store in Database. You can use your own style to show your information from database.
There are many classes that can determine the location coordinates of a given IP address. Some rely on calling an external Web service.
This one can work with IP2Location files, so it does not need to call a Web services.
It can parse the IP2Location files and find the location details of the given IP address, not only the latitude and longitude, but if you use the more complete version of the IP2Location database files, you can get also the city name.