Getting user ipaddress in php - PHP Views : 373
Tagged in : PHP
0 0
Send mail
$_SERVER['REMOTE_ADDR']; will get us the ipaddress of the pc or computer that is accessing our page.

Example Code:

$ipaddress = $_SERVER['REMOTE_ADDR'];
echo "The Ip Address is $ipaddress";
?>
By rajesh, On - 2009-10-29



    Login to add Comments .