Hi !
Have a look at  : http://php.net/manual/browse-errata.php?let=g
There's  a code that gives you the right host name ..

<?php
 if (getenv(HTTP_X_FORWARDED_FOR)){
 $ip=getenv(HTTP_X_FORWARDED_FOR);
}
else {
$ip=getenv(REMOTE_ADDR);
 }
$host = gethostbyaddr($ip);
?>

Arcad.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to