Re: CVS update: php3
| From: | Rasmus Lerdorf | Date: | Thu, 01 Jan 1970 00:00:00 +0000 |
| Subject: | Re: CVS update: php3 | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-3754@lists.php.net to get a copy of this message | ||
> 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.
-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