10-29-2003, 01:14 AM
mmm the signature isnt perfect. Its doing its best..
Let me know if anyone can rewrite the IP Finding code for more accuracy

Quote:
if (isset($_SERVER['REMOTE_ADDR'])) {
$ip = $_SERVER['REMOTE_ADDR'];
}
elseif (isset($_SERVER['HTTP_X_FORWARDED_FOR'])) {
$ip = $_SERVER['HTTP_X_FORWARDED_FOR'];
}
elseif (isset($_SERVER['HTTP_VIA'])) {
$ip = $_SERVER['HTTP_VIA'];
}
else {
$ip = "unknown";
Let me know if anyone can rewrite the IP Finding code for more accuracy
