Mega Code Archive

 
Categories / Php / Code Snippets
 

Get the IP address corresponding to a given Internet host name

<?php $ipaddress = gethostbyname("www.microsoft.com"); echo "$ipaddress"; ?>