How to save a variable at application level in php?
<p>How to save a variable at application level(same for all users) in php which will get updated after some time?</p>

<p>I've tried to find about it. I've found the following solutions:</p>

<ol>
<li>Implement using file handling.</li>
<li>Cache (Memcache or APC)</li>
<li>Implement using Database Support</li>
</ol>

<p>2 is considered as best (AFAIK). (I'm not allowed to install anything on the Server)</p>

<p>What about other two (mentioned above) or any other options and how I can implement those? I'm bit concerned because traffic is moderately high (but the bad thing is that I still can't use any cache mechanism). We just need to save the contents of buffer of around 255 bytes at application level.</p>

<p>Any snippets, pointers or help of any sort would be highly appreciated.</p>

<p>Thanks.</p>
