PDA

View Full Version : Client IP address


griffinmt
05-22-2004, 01:16 PM
Just started to use PHP with a small application and found a need to log some transaction information along with the ip address of the client system. Is there a function or system variable that provides this?

Thanks

griffinmt
05-22-2004, 02:32 PM
OK - Figured it out doing some snooping.
$_SERVER['REMOTE_ADDR'] was what I was looking for.

Where can I find a list of ALL such variables?

vinyl-junkie
05-22-2004, 03:48 PM
Welcome to the forum, griffinmt! :D

If you're looking for a list of all variables used in the phpdig code, check this (http://www.phpdig.net/navigation.php?action=api) out. If you're looking for a list of reserved variables that PHP uses, check this (http://us3.php.net/reserved.variables) out.

Hope it helps.

griffinmt
05-23-2004, 10:30 AM
That was usefull to me.

Thanks