Ninjakreborn Posted September 2, 2009 Share Posted September 2, 2009 Is there a way to take any website... whatever.com (google.com, yahoo.com, infotechnologist.biz, msn.com, phpfreaks.com, myfavoritesite.com.ca) whatever. Any site out there. And find out what the IP address of the website is using PHP? Quote Link to comment https://forums.phpfreaks.com/topic/172872-solved-get-website-ip-address-with-php/ Share on other sites More sharing options...
ignace Posted September 2, 2009 Share Posted September 2, 2009 print gethostbyname('google.com'); Quote Link to comment https://forums.phpfreaks.com/topic/172872-solved-get-website-ip-address-with-php/#findComment-911123 Share on other sites More sharing options...
Ninjakreborn Posted September 2, 2009 Author Share Posted September 2, 2009 Thank you very much. Quite a helpful function there. Quote Link to comment https://forums.phpfreaks.com/topic/172872-solved-get-website-ip-address-with-php/#findComment-911124 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.