Re: How to detect a PHP script time-out?
| From: | Robert Fisher | Date: | Wed, 08 Jan 2003 12:52:10 +0000 |
| Subject: | Re: How to detect a PHP script time-out? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-130763@lists.php.net to get a copy of this message | ||
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