RE: [PHP] gethostbyaddr timeout

From: Date: Wed, 31 Jan 2001 20:03:31 +0000
Subject: RE: [PHP] gethostbyaddr timeout
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-37527@lists.php.net to get a copy of this message
Your best bet would be to do this in another language such as perl or c where you can build a multithreaded application to look these up. Along the same note you can also split the file into a number of parts and run multiple instances of the same script. Afaik, the only way to decrease the timeout on a host lookup is to write your own nameserver query code. If all of this is outside of the scope of your programming knowledge, I would suggest biting the bullet and waiting for your script to complete. Then make a system to process new entries into the system when they are received. Also...why do you need to do this? It seems very odd. Jon Snell -----Original Message----- From: Aaron Gould [mailto:agould@partscanada.com] Sent: Wednesday, January 31, 2001 11:17 AM To: php-general@lists.php.net Subject: [PHP] gethostbyaddr timeout I'm at the end of my rope here... I have a 100,000+ line file containing IP addresses. For each line, I need to run a "gethostbyaddr" command. However, some lines take a long time to timeout. Is there a way I can decrease this timeout period to one or two seconds? Thanks!! -- Aaron Gould Programmer/Web Developer Parts Canada - http://www.partscanada.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#37527) next »