Monday, July 11, 2005

How do I get a user's IP address ?

The users ip address is stored in the environment variable $REMOTE_ADDR, if you want to resolve the domain name for that ip (if any) use:



$domain = GetHostByName($REMOTE_ADDR);

0 Comments:

Post a Comment

<< Home