gethostbyaddr

From: Date: Mon, 26 Jun 2000 15:00:58 +0000
Subject: gethostbyaddr
Groups: php.general 
Request: Send a blank email to php-general+get-3123@lists.php.net to get a copy of this message
In php3 the gethostbyaddr would simply return the ip address if it couldn't resolve the DNS entry, and the documentation reflects this. now, in PHP4 an error is displayed to the screen, rendering some of my pages useless. Should I do: if (gethostbyaddr($REMOTE_ADDR)) { $address = gethostbyaddr($REMOTE_ADDR); } else { $address = $REMOTE_ADDR; } would that work? -- Thomas Deliduka IT Manager ------------------------- New Eve Media The Solution To Your Internet Angst http://www.neweve.com/

« previous php.general (#3123) next »