Re: register_shutdown_function and timeouts
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Re: register_shutdown_function and timeouts

From: Peter van Schie <vanschie.peter@gmail.com>
Date: Thu Oct 06 2005 - 18:19:16 CEST

alex bazan wrote:
> I came across this function as i got a problem with very long-running
> scripts which use transactions...
>
> in the php manual i do not see clearly stated if the function defined
> will be executed if a timeout is reached.
>
> It states:
> "Registers the function named by function to be executed when script
> processing is complete."
>
> So what happens when the script processing is uncomplete because of a
> timeout?
>

The function you specify with register_shutdown_function gets executed
on timeout or exit. Just note you cannot echo or print anything anymore
after a timeout occured.

Peter.

-- 
http://www.phpforums.nl
Received on Tue Oct 18 02:32:46 2005