Re: [PHP-LANG] Application variablesa
[email protected] (Hartmut Holzgraefe) Fri, 04 Oct 2002 11:18:32 +0200
| Newsgroups | php.lang |
|---|---|
| Message-ID | <[email protected]> |
Martin Schmiedel wrote:
> Is there something similar in PHP as the ASP's Application variables?
>
> I am wanting to register some variable as to be read from any php file I
> use. Session variables offer something similar, but I neet the variables to
> be accessible to any user at any time. In ASP you would lock and unlock the
> application so you don't get in trouble with the critical section.
>
> Is there anything similar in PHP? I'm using a database at the moment, but I
> would really like a better solution.
please ask questions on the php-general list, this list had been created
for discussing PHP syntax and language desing issues and is not really
in use currently ...
that said: what you are looking for is shared memory access:
http://php.net/shmop -> for raw access
http://php.net/sem -> for variables in shared memory
and for locking (using semaphores)
--
Six Offene Systeme GmbH http://www.six.de/
i.A. Hartmut Holzgraefe
Email: [email protected]
Tel.: +49-711-99091-77