note 62449 added to function.gethostbyaddr

From: Date: Tue, 28 Feb 2006 23:17:05 +0000
Subject: note 62449 added to function.gethostbyaddr
Groups: php.notes 
Request: Send a blank email to php-notes+get-104586@lists.php.net to get a copy of this message
If all else fails, but you have shell access, Unix/Linux servers can use this for a timeout response: shell_exec('host -W 2 0.0.0.0'); Where 0.0.0.0 is of course the IP, and '2' is the number of seconds for the timeout. This returns a more detailed string of info, with some additional text which might vary depending on the system, so if you want a string with the hostname and nothing else, you'll have to do some substring cutting. There should be an equivalent of 'host' for Windows users to execute, but it isn't my platform. ---- Server IP: 64.71.164.2 Probable Submitter: 24.8.155.203 ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.gethostbyaddr.php Edit -- http://master.php.net/note/edit/62449 Del: integrated -- http://master.php.net/note/delete/62449/integrated Del: useless -- http://master.php.net/note/delete/62449/useless Del: bad code -- http://master.php.net/note/delete/62449/bad+code Del: spam -- http://master.php.net/note/delete/62449/spam Del: non-english -- http://master.php.net/note/delete/62449/non-english Del: in docs -- http://master.php.net/note/delete/62449/in+docs Del: other reasons-- http://master.php.net/note/delete/62449 Reject -- http://master.php.net/note/reject/62449 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#104586) next »