wrong note posted on the doc to modify
| From: | alexandre liot | Date: | Sun, 05 Apr 2009 10:35:29 +0000 |
| Subject: | wrong note posted on the doc to modify | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-4292@lists.php.net to get a copy of this message | ||
hi, i have posted a note on the doc and i am really sorry but it is wrong... i think i was maybe a
little tired and i did it too quicly...
so url is here: http://fr.php.net/manual/fr/function.gethostbyaddr.php#90074
and error is that the function name is not the good name ->
the hilighted text is missing, and my comment bellow is stupid, stolen ips are ever registered...
i'm really sorry next note will be usefull, do what you think you have to do and have fun.
---------------------------------------------------
function test_addr($Vip) {
$addr = gethostbyaddr($Vip);
return $addr;
}
$start_addr = microtime();
$addr = empty(test_addr($Vip)) && microtime()-$start_addr > '500' ?
'' : gethostbyaddr($Vip);
$user_addr = empty($addr) ? 'unknown' :
substr($addr,strlen($Vip)+'1',strlen($addr));
_________________________________________________________________
Inédit ! Des Emoticônes Déjantées! Installez les dans votre Messenger !
http://www.ilovemessenger.fr/Emoticones/EmoticonesDejantees.aspx