RE: [PHP-DEV] Register_Shutdown_Function happens before shutdown From: Brian Tanner (btanner <email protected>)
Date: 06/19/01

//You must have some bad HTML design however if you can not see your page
until after all that is done.

Thanks for your insight. You are very wise.

//PHP lives inside the connection and content delivery area of Apache.
//Therefore, all code is parsed while the connection is open.

I'm not talking about the code being parsed, I'm talking about it being
executed. However, form your other comment, I am going to assume that you
meant executed, and you are trying to tell me that code cannot execute after
the connection is severed.

This function must be a part of my imagination then:
int ignore_user_abort ([int setting])

Also, it seems pretty useless that ShutDown functions can't output to the
browser... if it is guaranteed to be hanging around anyway. Why is that?

-Brian Tanner

Brian Moon
----------------------------------------------------------------------
dealnews.com, Inc.
Makers of dealnews, dealmac
http://dealnews.com/ | http://dealmac.com/

----- Original Message -----
From: "Brian Tanner" <btanner <email protected>>
To: <php-dev <email protected>>
Sent: Monday, June 18, 2001 8:15 PM
Subject: [PHP-DEV] Register_Shutdown_Function happens before shutdown

> In theory (at least IMHO), this function should be used to register
> functions to finish up after the client has detached from the server.
>
> This way, time consuming tasks like logging, closing connections, sending
> e-mail, or whatever can be done *after* the client is happily surfing to
> their next page.
>
> However, I have tested Register_Shutdown_Function as much as I can
locally,
> and no matter what I try... I have to wait until my shutdown functions are
> done before I see the page, get redirected, or whatever.
>
> This is bug or a feature? Or am I a dummy?
>
> -Brian Tanner
>
>
> --
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
> For additional commands, e-mail: php-dev-help <email protected>
> To contact the list administrators, e-mail: php-list-admin <email protected>
>
>
>

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>