Re: gethostbyaddr
| From: | Thomas Deliduka | Date: | Mon, 26 Jun 2000 15:30:44 +0000 |
| Subject: | Re: gethostbyaddr | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-3132@lists.php.net to get a copy of this message | ||
I found it interesting that on 6/26/00 9:14 PM Masood Nasir said:
> well, you can try that and let everyone know if it works or not. :-) what
> is the error message?
Well, this is the error messages:
Warning: Unable to resolve 12.125.143.5 in /path/to/file/testing.phtml on
line 5
Warning: Unable to resolve 12.125.143.5 in /path/to/file/testing.phtml on
line 6
Here is the code:
<?
$ip = "12.125.143.5";
echo "Testing: $ip<BR>";
if (gethostbyaddr($ip)) {
$address = gethostbyaddr($ip);
} else {
$address = $ip;
}
echo "Result: $address";
?>
So, I guess it doesn't work. Man, how can you get it not to give a warning
to the screen? Perhaps it's my debug level?
--
Thomas Deliduka
IT Manager
-------------------------
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/