Re: CVS update: php3
| From: | Thies C. Arntzen | Date: | Wed, 27 Jan 1999 21:17:47 +0000 |
| Subject: | Re: CVS update: php3 | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-3753@lists.php.net to get a copy of this message | ||
Rasmus Lerdorf wrote:
> > i'm glad this feature finally got it's way into php3....
> >
> > one thing i'm curious about is: will i be able to check at the end of a script if all
> > data was sent?? (i NEED this for
> > logging puposes)...
> >
> > as discussed earlier i think it would be cool if we had a php3.ini setting (nohup=true;
> > //???) that allows one to
> > specify the default php behaviour (terminate the script as soon as no more data can be
> > delivered - or, keep the script
> > running to allow logging of aborted downloads/scripts via the script itself....) it would
> > also be desireable to have
> > an user lever function (like error_reporting) to chenge that behaviour for certain
> > pages....
>
> Yeah, I am considering that. I am not sure how useful it is though. The
> way to do it right now is with something like:
>
> function done() {
> if(connection_aborted()) {
> do whatever;
> }
> do other stuff;
> }
>
> register_shutdown_function("done");
>
> In this case the 'do other stuff' will always be excuted no matter how the
> script ended. And the 'do whatever' only gets executed if the user
> aborted the connection.
i believe many people would like their script to get "killed" when the connection is
aborted without changing their
(working-) code (just install a new apache, change one ini setting), on the other hand we should not
change the "standard"
behaviour in the current php3 code - so why not leave it up the the webmaster/developer how the
script handle connection
abort stuff.....
(BTW: do you think we can implement the same thing for the NT cgi version (i m unlucky enough to
have NT customers....;-())
regards,
tc
>
>
> -Rasmus
--
PHP Development Mailing List http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net
For help: php-dev-help@lists.php.net