Locate a user by IP

The program determines the user’s IP and uses this IP to determine the user’s location (region, city). Can you please tell me how this can be done in PHP?


Answer 1, authority 100%

There was a similar one recently question


Answer 2

Here is an article about this: determining the user’s location by his IP .