简体   繁体   中英

HTML5 Geolocation PHP alternative

I tried to find a way to find user's location in PHP, but except IP-based solutions I haven't found anything.

My application tries to find users location, and then store it in a database, so HTML5 geolocation (+JavaScript) wouldn't be a solution, as the position can be altered.

Application => Location => Database.

Any solution or recommendation?

(Posted solution on behalf of the OP) .

I will use HTML5 geolocation (maybe implement some kind of client-side query verification) and if it won't be available I will use a public API on a ip-to-location serivce.

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM