Re: System wide variable

From: Date: Thu, 24 May 2007 23:16:19 +0000
Subject: Re: System wide variable
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-255599@lists.php.net to get a copy of this message
On Wed, May 23, 2007 3:52 am, Darren Whitlen wrote: > Hi, > I have a PHP script that reads and updates either a small file or a > mysql database. This script is called from several places every .5 > seconds. Errr. Okay. Seems kind of frequent to me... What/why is going on here? You may get a MUCH better solution if you post the Big Picture. > I would like to move this file to a variable for extra speed as the > file > is causing a few problems being accessed so many times. > Is it possible to have a writeable variable that has the scope of > EVERY > script that is run through the parser? Well, you have Sys V shared memory and shmget shared memory and... http://php.net/shmop http://php.net/sem . . . -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So?

« previous php.general (#255599) next »