Re: gethostbyaddr timeout
| From: | Jon Jacob | Date: | Wed, 31 Jan 2001 18:00:41 +0000 |
| Subject: | Re: gethostbyaddr timeout | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-37513@lists.php.net to get a copy of this message | ||
Aaron Gould 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?
>
> 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
I am a Perl programmer by trade, but PHP has so many qualities of Perl I
wonder if there is some sort of Alarm command. In Perl, you would set
an alarm to control the timeout.
Does anyone know of such a function in PHP?