Click to See Complete Forum and Search --> : get IP?


diamonds
06-15-2003, 08:48 AM
How do you write a users IP address to a page using PHP?
Is there any documentation I can get to?

Jona
06-15-2003, 12:41 PM
It's a server variable.


<?PHP
echo $_SERVER["REMOTE_ADDR"];
?>


The reference is: http://us3.php.net/manual/en/reserved.variables.php#reserved.variables.server

Jona