ignace Posted August 5, 2006 Share Posted August 5, 2006 A few days ago, I was on this website that showed me my ISP, ofcourse as curious as I am, I went directly to php.net where I found gethostbyaddr(); providing me something but not what I wanted, so if someone knows how I can accomplish this, then please feel free to enlight me! Quote Link to comment https://forums.phpfreaks.com/topic/16640-how-to-retrieve-isp/ Share on other sites More sharing options...
xec Posted August 5, 2006 Share Posted August 5, 2006 hii, nice question.. , this web solution of your query.. :)http://www.maxmind.com/app/country Quote Link to comment https://forums.phpfreaks.com/topic/16640-how-to-retrieve-isp/#findComment-69806 Share on other sites More sharing options...
ignace Posted August 5, 2006 Author Share Posted August 5, 2006 I am a very poor programmer, that even $50 bucks is way beyond my salary, anything cheap like free? Quote Link to comment https://forums.phpfreaks.com/topic/16640-how-to-retrieve-isp/#findComment-69808 Share on other sites More sharing options...
phporcaffeine Posted August 5, 2006 Share Posted August 5, 2006 The web site that you saw do this feat (showing you your isp name); what they most likely did was:$_SERVER['REMOTE_addr']; //gets the client IPthen they probably queried whois.arin.net with fread() or similar to get the registered owner of that IP (which would be your provider (if they are tier 1, otherwise it will return your provider's provider))The whois data adhere's to conventions and standards so the web site new what and where to look to get your ISP's name. Quote Link to comment https://forums.phpfreaks.com/topic/16640-how-to-retrieve-isp/#findComment-69842 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.