★ wanayoo — archive 1999 http://www.php.net/manual/function.gethostbyname.phpNouvelle recherche | Portail wanayoo

PHP Home Page

Manual Table of Contents
Up to Network
Quick Reference
German version of this pageJapanese version of this pageItalian version of this pageFrench version of this pageHungarian version of this page
Network
* checkdnsrr
* closelog
* debugger_off
* debugger_on
* fsockopen
* gethostbyaddr
* gethostbyname
* gethostbynamel
* getmxrr
* getprotobyname
* getprotobynumber
* getservbyname
* getservbyport
* openlog
* pfsockopen
* socket_set_blocking
* syslog
* ip2long
* long2ip
Manual: gethostbyname
View the source code for this pageSearch the site



Previous page
 gethostbyaddr
 Updated
Sat, 12 Aug 2000
gethostbynamel 
Next page


gethostbyname

(PHP3 , PHP4 )

gethostbyname --  Get the IP address corresponding to a given Internet host name

Description

string gethostbyname (string hostname)

Returns the IP address of the Internet host specified by hostname.

See also gethostbyaddr().


User Contributed Notes: gethostbyname


spiceee@potentialvalleys.com
14-Jan-1999 02:14
If gethostbyname() can't translate the <TT CLASS="PARAMETER"><I>hostname</I></TT> into an IP address it will return the <TT CLASS="PARAMETER"><I>hostname</I></TT>.


pete.nelson@ci.stpaul.mn.us
27-Jul-1999 03:02
gethostbyname() seems to always return '255.255.255.255' on Irix 6.2. I haven't seen this on any other platform.


michielNOSPAM@doofpot.nl
16-Jul-2000 06:09
example:

$ipadres = gethostbyname("www.php.net");
echo "$ipadres";



 About Notes


Previous page
 gethostbyaddr
 Updated
Sat, 12 Aug 2000
gethostbynamel 
Next page





Who's responsible for this?
Top of this page

Site
Hosting:



Located in
United States
Elements of this website are subject to copyright.
Questions about installing or using PHP should be directed to one of the mailing lists.
Only questions about the website should be directed to webmaster@php.net.