note 10755 rejected and deleted from gethostbyaddr by zak

From: Date: Sat, 20 Jan 2001 13:04:53 +0000
Subject: note 10755 rejected and deleted from gethostbyaddr by zak
Groups: php.notes 
Request: Send a blank email to php-notes+get-10008@lists.php.net to get a copy of this message
Well... I've seen that when an error occurs, the returned value is not the original IP, but the IP with some extra garbage padding original string length up to 15 chars. My solution to avoid this problem is the following: $TheName=trim(gethostbyaddr($ip." "));

« previous php.notes (#10008) next »