|
Posted by Tyrone Slothrop on 05/30/06 20:29
On Tue, 30 May 2006 11:32:21 -0500, "robert"
<ab@no.spam-alama-ding-dong> wrote:
>look in php.net online docs and faq's...this is covered where you can
>specify a max wait time when looking for a response.
>
>
>"Tyrone Slothrop" <ts@paranoids.com> wrote in message
>news:e7qo72pehnnnf7sh6uoq7vfjkpj047ou6p@4ax.com...
>|I am using exec() to run a number of StarOS tests on multiple IP's
>| (they test various aspects of router and server functions). The
>| problem I have is that an invalid IP may cause a delay of a few
>| minutes in the execution of the script. I cannot use ping to test the
>| validity of an IP since ping may be blocked.
>|
>| Is there a way to stop the execution of a loop if, after a few
>| seconds, there is no response from the server? I would guess that the
>| exec() would have to be called from inside of some sort of timer,
>| though the solution escapes me.
>|
>| TIA!
Top posting aside (as well as Martin's obsessive "sic-ness"), consider
that there are two loops involved in the script and a number of
tangental functions as well. I need to evaluate a timeout within the
inner loop. Timing out the entire script does not help.
I was considering running pcntl functions, but is not installed on
this server.
Navigation:
[Reply to this message]
|