If you are willing to do a rewrite, then have your
main script start a fork, or child process.  The child
process would run your script while the parent would
do nothing else but wait for the child.  if the child
times out the parent will know and you can then print
out a error message.

See the following on how to implement forks (process
controls).  It is kind of confusing and could be fatal
to your system load if done incorrectly.

http://www.php.net/manual/en/ref.pcntl.php


__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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

Reply via email to