gethostbyaddr (Features)
Hey, first i'd like to say that 'my little forum' totally rocks
the way a message board should be!
now the question =)
just wondering if gethostbyaddr could be added in this line of code plz..
i can hack it in but i'll ask first =) (the db?)
$headers .= "X-Sender-IP: ".$_SERVER["REMOTE_ADDR"] . $mail_header_separator;
thx
*snip
$host = gethostbyaddr(pack("C4",split(/\./,$addr)), $addr_type);
# check twice to deal with timeout
if ($host eq '') {
# remove this if things are too slow...
sleep(1);
$host = gethostbyaddr(pack("C4",split(/\./,$addr)), $addr_type);
}
*end