note 88920 added to function.gethostbyaddr

From: Date: Fri, 13 Feb 2009 10:07:31 +0000
Subject: note 88920 added to function.gethostbyaddr
Groups: php.notes 
Request: Send a blank email to php-notes+get-150613@lists.php.net to get a copy of this message
Just wanted to let everyone know that gethostbyaddr() takes more than 20 seconds to respond if the IP address is not listed in DNS. So be careful if you are going to use this function in the production environment. You or your users may not be able to get the response from the server before the timeout occurs. Slow website only makes people very frustrated. You shouldn't use this function at all unless you have a very good reason to do so (taking logs? then save ip addresses instead and resolve them later by running a batch or something.) ---- Server IP: 61.195.146.164 Probable Submitter: 221.242.135.82 ---- Manual Page -- http://www.php.net/manual/en/function.gethostbyaddr.php Edit -- https://master.php.net/note/edit/88920 Del: integrated -- https://master.php.net/note/delete/88920/integrated Del: useless -- https://master.php.net/note/delete/88920/useless Del: bad code -- https://master.php.net/note/delete/88920/bad+code Del: spam -- https://master.php.net/note/delete/88920/spam Del: non-english -- https://master.php.net/note/delete/88920/non-english Del: in docs -- https://master.php.net/note/delete/88920/in+docs Del: other reasons-- https://master.php.net/note/delete/88920 Reject -- https://master.php.net/note/reject/88920 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#150613) next »