Greg Maruszeczka wrote:
On Sat, 21 Oct 2006 19:55:17 -0400
Fred Moses <fred@xxxxxxxxxx> wrote:
Is there a function which returns the IP address of the requestor of the
current page?
--
Don't think so but there is a superglobal that contains it:
$_SERVER['REMOTE_ADDR']
.. which can be faked or sometimes not appear or sometimes you could be
hiding behind multiple proxies or a modem... so it's not going to be
super reliable (neither are the two variables below).
See also $_SERVER['HTTP_CLIENT_IP'] and $_SERVER['HTTP_X_FORWARDED_FOR'].
--
Postgresql & php tutorials
http://www.designmagick.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php