Re: PHP site ?
| From: | Lester Caine | Date: | Sun, 05 Sep 2004 06:19:55 +0000 |
| Subject: | Re: PHP site ? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-195898@lists.php.net to get a copy of this message | ||
Jack Gates wrote:
I replaced this: $address = getenv("REMOTE_ADDR"); with this $hostname = gethostbyaddr($_SERVER['REMOTE_ADDR']); and now I am getting exactly what I was trying to get.This will work fine for networks that provide their own 'REMOTE_ADDR', but once proxies are in the way, you will see a proxy address rather than the real machine. My own connection gives You are host81-138-11-136.in-addr.btopenworld.com for the osCommerce site. Probably good enough, but not really me ;) -- Lester Caine ----------------------------- L.S.Caine Electronic Services