Re: AW: [PHP] gethostbyaddr timeout

From: Date: Thu, 01 Feb 2001 19:07:39 +0000
Subject: Re: AW: [PHP] gethostbyaddr timeout
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-37686@lists.php.net to get a copy of this message
set_time_limit() ? Read the docs - this may be the solution. CB At 07:43 PM 2/1/01 +0100, Sebastian Stadtlich wrote:
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? i don't know about any function that does that, what i did with something simmilar is to automaticly generate a frames page that calls the script which then only performs 10 or so of the tasks. you can easyly have that page open 10 or so browserwindows. if you generate a framesmatrix 10*10 open 10 pages at least the time it takes will be devided by 1000 ( in avg.....) ( and of cause you will need something threadsafe/stable to safe the results.....) sebastian -- 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 (#37686) next »