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 > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php