gethostbyaddr error

From: Date: Mon, 26 Jun 2000 17:11:36 +0000
Subject: gethostbyaddr error
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-22372@lists.php.net to get a copy of this message
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/

« previous php.dev (#22372) next »