Priceless1 Posted February 6, 2009 Share Posted February 6, 2009 How do I do this in text? "You are located in San Diego, California." Link to comment https://forums.phpfreaks.com/topic/144006-display-users-citystate-on-page/ Share on other sites More sharing options...
peranha Posted February 6, 2009 Share Posted February 6, 2009 Something like GEO-IP? It gets your location based on the ip address, but it may not be 100% accurate. Link to comment https://forums.phpfreaks.com/topic/144006-display-users-citystate-on-page/#findComment-755626 Share on other sites More sharing options...
Priceless1 Posted February 6, 2009 Author Share Posted February 6, 2009 Can you give me a specific script or link to one? Geo-IP costs money - and I also want something that just says city/state if possible... Link to comment https://forums.phpfreaks.com/topic/144006-display-users-citystate-on-page/#findComment-755630 Share on other sites More sharing options...
gevans Posted February 6, 2009 Share Posted February 6, 2009 maybe these?? http://www.phpclasses.org/browse/package/2363.html#download http://www.maxmind.com/app/geoip_country http://ip-to-country.webhosting.info/ I've got a txt file from the first link 42913 lines long set out like a csv; ip - ip - country Amazing what google can do Link to comment https://forums.phpfreaks.com/topic/144006-display-users-citystate-on-page/#findComment-755650 Share on other sites More sharing options...
Priceless1 Posted February 6, 2009 Author Share Posted February 6, 2009 That's all nice but I need it to say the city and the state - all my visitors are going to be US based. I don't need someone to be able to type in their IP address manually. Link to comment https://forums.phpfreaks.com/topic/144006-display-users-citystate-on-page/#findComment-755653 Share on other sites More sharing options...
corbin Posted February 6, 2009 Share Posted February 6, 2009 http://www.maxmind.com/app/geolitecity 79% accuracy, but you get what you pay for. Link to comment https://forums.phpfreaks.com/topic/144006-display-users-citystate-on-page/#findComment-755656 Share on other sites More sharing options...
gevans Posted February 6, 2009 Share Posted February 6, 2009 Also, I like finding these things out but you've basically had two people using google for you, this isn't a problem just laziness Link to comment https://forums.phpfreaks.com/topic/144006-display-users-citystate-on-page/#findComment-755830 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.