DISREGARD Re: [PHP-GENERAL] gethostbyaddr error
| From: | Thomas Deliduka | Date: | Mon, 26 Jun 2000 17:12:08 +0000 |
| Subject: | DISREGARD Re: [PHP-GENERAL] gethostbyaddr error | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-3142@lists.php.net to get a copy of this message | ||
Sorry, sorry! I sent this to the wrong list!
I found it interesting that on 6/26/00 1:11 PM Thomas Deliduka said:
> An error appears on the screen instead of returning just the IP address. I
> created a couple of pages to demonstrate what I mean. Here's the code I
> used:
>
> <?
> $ip = "12.125.143.5";
>
> echo "Testing: $ip<BR>";
> if (gethostbyaddr($ip)) {
> $address = gethostbyaddr($ip);
> } else {
> $address = $ip;
> }
>
> echo "Result: $address";
> ?>
>
> The If statement was there because I was testing whether I could simply not
> have the error show up if it was within an IF statement. either way, the two
> sites are these, one running PHP 3.0.12 and the other 4.0.0
>
> http://www.mariebellet.com/testing.phtml
> http://www.vcsites.com/testing.phtml
>
> Now, do you think it could be my error reporting level in my php.ini file?
--
Thomas Deliduka
IT Manager
-------------------------
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/