Re: IP Address
| From: | Chris | Date: | Mon, 23 Oct 2006 06:38:27 +0000 |
| Subject: | Re: IP Address | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-243446@lists.php.net to get a copy of this message | ||
Greg Maruszeczka wrote:
On Sat, 21 Oct 2006 19:55:17 -0400 Fred Moses <fred@fmoses.com> wrote:.. 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/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']