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
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php