RE: [PHP-DEV] Register_Shutdown_Function happens before shutdown

From: Date: Tue, 19 Jun 2001 04:35:34 +0000
Subject: RE: [PHP-DEV] Register_Shutdown_Function happens before shutdown
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-57051@lists.php.net to get a copy of this message
//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@home.com> To: <php-dev@lists.php.net> 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@lists.php.net > For additional commands, e-mail: php-dev-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > >

« previous php.dev (#57051) next »