Re: How to detect a PHP script time-out?
| From: | Jean-Christian Imbeault | Date: | Thu, 09 Jan 2003 02:31:14 +0000 |
| Subject: | Re: How to detect a PHP script time-out? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-130851@lists.php.net to get a copy of this message | ||
Robert Fisher wrote:
If you are willing to do a rewrite, then have your main script start a fork, or child process.According to Arpi (see below) I can use register_shutdown(), as the docs are wrong and it *will* send output to the browser *before* the connection is closed. Jc
Tamas Arpad wrote: That's not right now. The manual is outdated. See this bug report http://bugs.php.net/bug.php?id=15209. This behavior was changed from 4.06 to 4.1. In newer versions of php the registered functions will run before the connection is closed so ouptput can
be done from there as well. So Jean you can make it as it is suggested on this page: http://www.php.net/manual/en/features.connection-handling.php Arpi