GEt Ip for Domains in php

by Prabakaran 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>";

?>
765
like
0
dislike
0
mail
flag

You must LOGIN to add comments