Re: Application Scope variables ?
From: aa (aa_at_virgin.net)
Date: 09/21/04
- Next message: Virgil Green: "Re: Application Scope variables ?"
- Previous message: Lucas: "Re: should I upgrade?"
- In reply to: aa: "Application Scope variables ?"
- Next in thread: Tony Marston: "Re: Application Scope variables ?"
- Reply: Tony Marston: "Re: Application Scope variables ?"
- Reply: Gordon Burditt: "Re: Application Scope variables ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 21 Sep 2004 17:40:18 +0100
Just to stream the discussion up - how a page hit conter in implemented in PHP?
In ASP you increment a relative Application scope variable every time a page is requested. This veraible is accessible from any session.
This variable is sitting in the memory as long as the Application (i.e. the website) is running.
If the Application is stopped, it fires an event "application_on_close" and on this event you write an application data to a file from which it can be recovered when the application is restarted.
How do I get the same effect in PHP?
"aa" <aa@virgin.net> wrote in message news:414eb86a$0$80627$ed2619ec@ptn-nntp-reader01.plus.net...
I am migrating to PHP from ASP where there are the Application Scope variables which are accessible from any page on a website and which are used, in particular, for hit counters.
Is there a similar mechanism in PHP?
- Next message: Virgil Green: "Re: Application Scope variables ?"
- Previous message: Lucas: "Re: should I upgrade?"
- In reply to: aa: "Application Scope variables ?"
- Next in thread: Tony Marston: "Re: Application Scope variables ?"
- Reply: Tony Marston: "Re: Application Scope variables ?"
- Reply: Gordon Burditt: "Re: Application Scope variables ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|