I am building a script that I would like to have do a specific task
based on whether specific counts have been reached.

Basically, the script checks for connectivity in a specific port.  If
the connectivity fails, it increases the count by 1.  It does this every
minute.  I would like the script to page me at specific marker points
(i.e. 5, 15, 30, 60, 90, 120, etc).  Is there anyway to make an if
statement or something similar to run in any case where the COUNT value
equals one of the numbers in the array?

Example:

$cases = array( 5, 15, 30, 60, 90, 120 );

if ( $count = {ITEM IN $cases} )        {
        EXECUTE PAGE
}

Thanks,
Jason Williard

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to