In ColdFusion, there is a "server" variable scope which allows you to store variables in the ColdFusion memory space. These variables persist between page requests. Its good for stuff that applies to the entire server and across all of your applications.
In my PHP scripts, I want to have a variable that is accessable by all pages and scripts on the entire server. Can someone please provide me with an example or link to information on how to accomplish this?
I see in PHP, there is a $SERVER[] construct, but that does not appear to persist data in memory between pages. For example, say I wanted to keep a variable in memory called $newestMemberName which would remember the user name of the most recent user to join my site? I could use a database or filesystem, but I want to use the memory to store this data for speed reasons.
Thanks,
Jon