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:[EMAIL PROTECTED]]
Sent: Wednesday, January 31, 2001 11:17 AM
To: [EMAIL PROTECTED]
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to