Re: Server Level Global Variable

Perrin Harkins <[email protected]>
Newsgroups gmane.comp.apache.mod-perl
Message-ID <[email protected]>
On Tue, Apr 13, 2010 at 2:23 PM, Shibi NS <[email protected]> wrote:
> I have requirement to maintain variables at server level say a
> counter(something like server restart count) variable and time date, so if
> particular event(say die on request handler) this counter increments by one
> and time date variable updated to current system date and time.  Is there is
> any way to do it  so all request process get access to this variable can be
> updated by  Apache reques

No.  You can do it by using a database, a file, or shared memory with
one of the modules on CPAN.  Unless you have extreme performance
needs, I'd suggest just using a database, since you probably have one
already.

- Perrin
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.