phpwebhosting + gethostbyaddr()
| From: | lists at mole dot phpwebhosting dot com | Date: | Mon, 03 Mar 2003 05:21:27 +0000 |
| Subject: | phpwebhosting + gethostbyaddr() | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-137854@lists.php.net to get a copy of this message | ||
----- Original Message -----
From: "erich" <erichmj@earthlink.net>
To: <php-general@lists.php.net>
Sent: Wednesday, February 26, 2003 12:50
Subject: [PHP] gethostbyaddr woes
> for some reason i cannot retrieve a hostname using gethostbyaddr().
>
> if it helps, my host is http://phpwebhosting.com/. i have asked
> them
> countless times if it is something on their end causing this and have
> been told that it works for them and i must be doing
> something wrong. any suggestions?
>
>
Hi Erich,
I just happened to be browsing the list archives and came across your
post. What code are you using? I did a quick test with:
<?php
$blah = gethostbyaddr("64.246.30.37");
print "$blah\n";
?>
and it outputs the correct output (rs1.php.net)
I couldn't find your email address in our system so I don't know
which specific server you are on but it should work on any of them.
Open a ticket in your CP if you still can't get it to work.
Greg
(phpwebhosting.com support)