DanDaBeginner Posted March 12, 2007 Share Posted March 12, 2007 I have a site that I would like to update the members country automatically.. for example if the member 01 was in the USA then the the user 01 browse the site in CANADA i want it to be automatically update to CANADA.. that's why I wanted to knwow how to get the user's country? thanx in advance...... Link to comment https://forums.phpfreaks.com/topic/42363-solved-how-to-get-the-users-country/ Share on other sites More sharing options...
trq Posted March 12, 2007 Share Posted March 12, 2007 Try here. Link to comment https://forums.phpfreaks.com/topic/42363-solved-how-to-get-the-users-country/#findComment-205489 Share on other sites More sharing options...
DanDaBeginner Posted March 12, 2007 Author Share Posted March 12, 2007 thanx. but I wanted it to be coded by myself, is there a way? Link to comment https://forums.phpfreaks.com/topic/42363-solved-how-to-get-the-users-country/#findComment-205494 Share on other sites More sharing options...
mbtaylor Posted March 12, 2007 Share Posted March 12, 2007 Its the database of IP addresses that is important, how you access that is up to you. I believe you can get the Maxmind GeoIP lite data for free and in either csv or binary format. I personally use their API to access that but you could use sql statements I guess. Link to comment https://forums.phpfreaks.com/topic/42363-solved-how-to-get-the-users-country/#findComment-205502 Share on other sites More sharing options...
DanDaBeginner Posted March 13, 2007 Author Share Posted March 13, 2007 okie dokie.. thanx for the help guys... Link to comment https://forums.phpfreaks.com/topic/42363-solved-how-to-get-the-users-country/#findComment-206088 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.