Your Open Source
Free YourOpenSource Softwares Online Resources and Softwares Downloads with Demo
Related Links
PHP
How to get the ip for the particular host
get the ip address for the given host name :
sample Code:
$host_ name = 'www.youropensource.com';
$ip = gethostbyname($host_ name);
echo $ip ;
Definition :
gethostbyname() — Get the IP address corresponding to a given Internet host name
string gethostbyname ( string $hostname )
Returns the IP address of the Internet host specified by hostname.
111
Mar 06 09 01:03:47
Damu
Rating : 









|
|||
Digg
Yahoo
delicious