
November 24th, 2012, 06:40 AM
|
|
Contributing User
|
|
Join Date: Dec 2005
Location: Vancouver, WA, USA
|
|
To get the IP, just use:
Code:
$IP=$_SERVER['REMOTE_ADDR'];
(Works in MOST cases, but there are exceptions)
gethostbyaddr() resolves the IP to a hostname, using Reverse DNS
__________________
Thomas Tremain
|