gethostbyaddr (Features)

by exzackery @, New Zealand (Waiheke Island), Tuesday, July 14, 2009, 07:27 (5397 days ago)

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


Complete thread:

 RSS Feed of thread