Re: Application variablesa
| From: | Hartmut Holzgraefe | Date: | Fri, 04 Oct 2002 09:18:32 +0000 |
| Subject: | Re: Application variablesa | ||
| References: | 1 | Groups: | php.lang |
| Request: | Send a blank email to php-lang+get-396@lists.php.net to get a copy of this message | ||
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: hartmut@six.de Tel.: +49-711-99091-77