Query: gethostbynamel
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
GETHOSTBYNAMEL(3) 1 GETHOSTBYNAMEL(3) gethostbynamel - Get a list of IPv4 addresses corresponding to a given Internet host nameSYNOPSISarray gethostbynamel (string $hostname)DESCRIPTIONReturns a list of IPv4 addresses to which the Internet host specified by $hostname resolves.PARAMETERSo $hostname - The host name.RETURN VALUESReturns an array of IPv4 addresses or FALSE if $hostname could not be resolved.EXAMPLESExample #1 gethostbynamel(3) example <?php $hosts = gethostbynamel('www.example.com'); print_r($hosts); ?> The above example will output: Array ( [0] => 192.0.34.166 )SEE ALSOgethostbyname(3), gethostbyaddr(3), checkdnsrr(3), getmxrr(3), the named(8) manual page. PHP Documentation Group GETHOSTBYNAMEL(3)
Related Man Pages |
---|
getipnodebyaddr(3) - osf1 |
hosts(4) - hpux |
geoip_continent_code_by_name(3) - php |
geoip_netspeedcell_by_name(3) - php |
geoip_region_by_name(3) - php |
Similar Topics in the Unix Linux Community |
---|
Simple rules of the UNIX.COM forums: |
User Guide: Posting in the Emergency Forum |
UNIX.COM 2017 Year End Summary |
Please Welcome Don Cragun as Lead Moderator |