In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (Jason Caldwell) wrote:
> Here's my code:
> ----------------
> <?
> set_time_limit(1);
> function clean_up()
> {
> if(connection_status() & TIMEOUT)
> print("Script timed out.\n");
> }
> register_shutdown_function("clean_up");
> while(1);
> ?>
>
> Here's the message I get: (I should get "Script timed out.")
No, you shouldn't/wouldn't, because--as is noted in the docs
<http://php.net/register-shutdown-function>--no more output ("print" is
specifically mentioned as an example) can be sent to the browser at that
stage. Try sending youself an email, or logging to a file instead.
--
CC
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php