[eluser]InsiteFX[/eluser]
To Extract the users gateway IP address:
Code:
$ip = $_SERVER['REMOTE_ADDR'];
To obtain the hostname of the gateway IP address:
Code:
$hostname = GetHostByName($_SERVER['REMOTE_ADDR']);
To get the users local IP address:
Code:
$localip = $HTTP_SERVER_VARS['HTTP_X_FORWARDED_FOR'];
Make sure you clean all input data...
Enjoy
InsiteFX