Re: Timeout Function:
| From: | Jason Sims | Date: | Tue, 24 Apr 2001 23:13:25 +0000 |
| Subject: | Re: Timeout Function: | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-52329@lists.php.net to get a copy of this message | ||
> Personally, I think having an alarm (timeout) function is a really good
> idea.
>
> Setting a timer, and then being able to jump from whatever you are doing if
> it is taking too long is something that has helped me do some really neat
> stuff in C and Perl... and I was a little dissapointed when I learned PHP
> didn't have.
Although I've been able to solve my current problem with fsockopen(), I
think an alarm function would be nice to have for other things. Perl is
open-source, right? Probably the best way to implement this in PHP would be
to look at how Perl is doing it and go from there.
--
Jason Sims
Senior Editor & System Administrator
Inside Mac Games
http://www.insidemacgames.com