hello there,
I want to know if there is another way to get IP address BESIDES using:
$HTTP_SERVER_VARS['REMOTE_ADDR'] ; OR
$GLOBALS[REMOTE_ADDR]; OR
getenv ("REMOTE_ADDR"); OR
$_SERVER['REMOTE_ADDR'] ;
what other way to do that?
hi im prety new to php but i know the way of getting ip i use is
and some local ips like 10.0.* i use
HTTP_X_FORWARDED_FOR
how many more ways you want? isn't that enough? 🙂
$HTTP_CLIENT_IP
works 😉
Originally posted by tuf-web.co.uk $HTTP_CLIENT_IP works 😉
Undefined variable: HTTP_CLIENT_IP .........
PHP 4.3.1
The problem is that not all of these variables are required to be defined.
The PHP manual links to a list that might be useful.