Re: gethostbyaddr FIXED

From: Date: Mon, 26 Jun 2000 18:02:59 +0000
Subject: Re: gethostbyaddr FIXED
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-3152@lists.php.net to get a copy of this message
If anyone cares. I had compiled PHP 4 with debugging enabled so that's the reason for the error. I disabled debugging and it went back to normal. I found it interesting that on 6/26/00 11:34 AM Thomas Deliduka said: > 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 (#3152) next »