GEt Ip for Domains in php
by Prabakaran[ Edit ] 2012-09-07 18:28:11
Get the IP address corresponding to a given Internet host name
<?php
$ipaddress = gethostbyname("www.microsoft.com");
echo "<br>$ipaddress<br>";
$ipaddress1 = gethostbyname("www.google.com");
echo "$ipaddress1<br>";
$ipaddress2 = gethostbyname("www.yahoomail.com");
echo "$ipaddress2<br>";
?>