Re: gethostbyaddr UPDATE

From: Date: Mon, 26 Jun 2000 15:34:38 +0000
Subject: Re: gethostbyaddr UPDATE
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-3133@lists.php.net to get a copy of this message
Update on this... I tested the same script on a server running PHP 3.0.12 and the error didn't happen. I found it interesting that on 6/26/00 11:30 AM Thomas Deliduka said: > 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/

« previous php.general (#3133) next »