|
|
Getting user ipaddress in php - PHP
|
Views : 373
|
|
Tagged in : PHP
|
|
|
Report This Scrap as Inappropriate We request you to choose the appropriate categroy and subcategory that suits your
objectionable concern about the scrap, So that our team can review and find out whether it violates our Guidelines or the
scrap is not suitable for all viewers.
|
$_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 |
|
|
|