Re: how to detect error
| From: | Rasmus Lerdorf | Date: | Sat, 13 Apr 2002 00:22:58 +0000 |
| Subject: | Re: how to detect error | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-92843@lists.php.net to get a copy of this message | ||
Read the chapter on connection handling in the manual. Basically you need
to register a shutdown function using register_shutdown_function() and
check connection_status() from that.
-Rasmus
On Fri, 12 Apr 2002, Charmaine Tian wrote:
> Hi,
>
> If a PHP script is terminated due to time out (defined by
> max_execution_time) or memory error (memory_limit exceeds), how can I detect
> the error in code?
>
> connection_timeout() is deprecated as of 4.0.5, and connection_status() does
> not return the correct value when time out happens.
>
> Any solutions? Thanks in advance.
>
> --Charmaine
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>