List Info

Thread: note 62449 added to function.gethostbyaddr




note 62449 added to function.gethostbyaddr
user name
2006-02-28 23:17:05
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.p
hp.net/note/edit/62449
Del: integrated  -- ht
tp://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://m
aster.php.net/note/delete/62449/spam
Del: non-english -- h
ttp://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://ma
ster.php.net/manage/user-notes.php

-- 
PHP Notes Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
.php

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )