I am trying to get the user location using php and mysql
The question is
Arethere any php functions or libraries that can get the current user location like street name and city name
You could refer to this link here: PHP Detect Country and City
This class can get the current user location using codehelper.io API.
It can determine the current user IP address checking the user remote IP address eventually behind a proxy server.
The class can send a HTTP request to the codehelper.io API to get the geographic location details associated to the user IP address.
It returns the continent, country, city, latitude, longitude and other details associated to the location city.
The class caches the locations for the given IP address for one week.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.