Scooby08 Posted October 6, 2008 Share Posted October 6, 2008 I'm creating a site for a company that wants to display a specific phone number on the site according to the users ip address.. He has many different offices in different locations, and wanted the number that is local to the user to display according to their ip address.. Can this be done successfully? And if so, how would one go about this? Thankyou.. Quote Link to comment https://forums.phpfreaks.com/topic/127314-ip-address-locations/ Share on other sites More sharing options...
Brian W Posted October 6, 2008 Share Posted October 6, 2008 http://www.linuxjournal.com/article/7856 I didn't read into it to far, but it looks like what you are talking about. I don't know if there is an easier way either. Quote Link to comment https://forums.phpfreaks.com/topic/127314-ip-address-locations/#findComment-658544 Share on other sites More sharing options...
zsedc Posted October 6, 2008 Share Posted October 6, 2008 I used this a few years ago: http://www.linuxjournal.com/article/7856 But for now i think i would use PEAR http://articles.techrepublic.com.com/5100-10878_11-6103179.html good luck Quote Link to comment https://forums.phpfreaks.com/topic/127314-ip-address-locations/#findComment-658550 Share on other sites More sharing options...
CroNiX Posted October 6, 2008 Share Posted October 6, 2008 AFAIK, the (free) maxmind geoip database does not include details such as cities within countries, only the country. Might not be useful unless your clients offices are spread across multiple countries... Quote Link to comment https://forums.phpfreaks.com/topic/127314-ip-address-locations/#findComment-658582 Share on other sites More sharing options...
CroNiX Posted October 7, 2008 Share Posted October 7, 2008 My bad...they do have city info, just not as accurate as the pay system... http://www.maxmind.com/app/geolitecity Quote Link to comment https://forums.phpfreaks.com/topic/127314-ip-address-locations/#findComment-658586 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.