|
Home
iRate! IceMelon IM Tutorials Headlines CoolSites PHP Functions |
|
Most Referenced Functions » google_pagerank() » preg_replace() » imagecreatefrompng() » site_pageranks() » imagepng() » imagedestroy() » imagestring() » imagecolorallocate() » htmlentities() » preg_match() » fopen() » header() » getimagesize() » preg_match_all() » session_start() » htmlspecialchars() » ob_start() » ob_flush() » strstr() » flush() » strpos() » setcookie() » str_replace() » array2vars() » nl2br() » preg_split() » ereg() » ereg_replace() » urlencode() » readgzfile() Become a sponsor for $15/month. Link is sitewide - PR5 homepage, 20+ PR4 pages, 90+ PR3 pages. Email dave[AT]icemelon[D0T]c0m. |
PHP Functions
Function: gethostbynamel (PHP 3, PHP 4, PHP 5) gethostbynamel -- Get a list of IP addresses corresponding to a given Internet host nameDescriptionarray gethostbynamel ( string hostname )Returns a list of IP addresses to which the Internet host specified by hostname resolves. Returns FALSE if hostname could not be resolved. Example 1. gethostbynamel() example
<?php
$hosts = gethostbynamel('www.example.com');
print_r($hosts);
?>
The printout of the above program will be:
Array
(
[0] => 192.0.34.166
)Related Function(s) |