Jump to content

Newbie Question on Persistent Data


fractz

Recommended Posts

Hi,
I've only been looking at php for a couple of weeks. I'm trying to figure out if there's any way to keep a very small amount of persistent data server wide across all sessions, sort of like an in-memory cache, not backed up on a file system. I've looked at many FAQs and such, no hints so far that it is even possible.
Link to comment
https://forums.phpfreaks.com/topic/28460-newbie-question-on-persistent-data/
Share on other sites

[quote author=printf link=topic=116290.msg473729#msg473729 date=1164487847]
You can use a global cached include file via htaccess or php.ini or apache config...

php.ini

[code]auto_prepend_file = "path/name.php"[/code]
[/quote]

Great! Would it be too much to ask for the code needed in htaccess and httpd.conf?
[quote author=printf link=topic=116290.msg473740#msg473740 date=1164488986]
If you want just for certain domains, include it in your [b]virtual host[/b] declaration in your apache config file, if you don't it will be global across the complete server for every call that PHP handles!


printf
[/quote]

Thanks! Much appreciated.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.