Re: [PHP4BETA] quick wishlist...
| From: | Derek Harding | Date: | Tue, 17 Aug 1999 01:01:47 +0000 |
| Subject: | Re: [PHP4BETA] quick wishlist... | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-3464@lists.php.net to get a copy of this message | ||
Brian Lakstins wrote:
>
> I think there might be a misconception about the use of the global.asa file. As I understand
> it
> (and Micro$oft may explain it differently), the global.asa file is for running four subroutines
> that are event driven. The four events are:
>
> 1. The start of the Application (the first time a request is made for a document in that
> directory (or one of it's
> subdirectories) after the web server has been started).
> 2. The end of the Application (when the web server shuts down).
> 3. The start of a new Session (when a request is made for a document in that directory (or one
> of it's subdirectories)
> by a browser who has not been given a session cookie yet)
> 4. The end of a session (after no requests have been made for documents in that directory (or
> one of it's
> subdirectories) by a browser with a certain session cookie for a specified period of time).
That's pretty much what it's about.
An autoprepend file could be used to mimic the onSessionStart()
function. I can't think of anyway to mimic the onApplicationStart() or
onSessionEnd(). I have never seen a use for onApplicationEnd() or even
found out when it gets called. :)
I'm fairly new to PHP so I may have missed a way to achieve these
results.
My main concern, having had to suffer ASP & VBScript for a while is the
namespace clutter with PHP -- post vars, get vars, cookies & environment
all in the same namespace seems very cluttered to me. :-) Plus each
different capability has it's own functions all in the same namespace
rather than having an OO or module approach where you reference specific
capabilities through their object or module reference.
Just my $0.02.
Derek
--
Derek Harding
CTO Innovyx
http://www.innovyx.com/~derek/
-------------------------------------------------------------------
Asking someone to repeat a phrase you'd not only heard very clearly but
were also exceedingly angry about was around Defcon II in the lexicon of
squabble.
-- Terry Pratchett, Witches Abroad