Get IP address using gethostbyname() function
gethostbyname() is used to get the IP address corresponding to a given Internet host name.
Examples code:
<?php
$ip = gethostbyname(‘www.mistonline.in’);
echo $ip;
?>One way to discover your IP address automatically:
<?php
// need to trim() because whitespace will confuse the name lookup
$myIP = gethostbyname(trim(`hostname`));
echo $myIP;
?>
Related posts:
- How to get the IP address of the visitor with PHP?
- Get IP address using javascript And SSI
- MD5 Function and Unique ID in php

Sounds cool……………
hmm nice one…
nice website..
hmm good..
cool..
Good website….
gud one