Azu Posted May 27, 2007 Share Posted May 27, 2007 Can someone please tell me if there is there some kind of plugin for PHP that will let me have a persistent array that will stay in memory even after the php process dies, and that all PHP processes will be able to access? Like some kind of $_SuperDuperImmortalGlobal['InterPHP'] that only goes away when the web server closes? And if there is, does it work with fastcgi? I don't care if it's free or not as long as it has good performance. Better performance then calling a database memory table over and over. Quote Link to comment https://forums.phpfreaks.com/topic/53153-persistant-array-held-in-memory-between-connections/ Share on other sites More sharing options...
rhyspaterson Posted May 27, 2007 Share Posted May 27, 2007 I'm pretty new to everything, but isn't that what sessions are for? Quote Link to comment https://forums.phpfreaks.com/topic/53153-persistant-array-held-in-memory-between-connections/#findComment-262585 Share on other sites More sharing options...
Azu Posted May 27, 2007 Author Share Posted May 27, 2007 I'm pretty sure session cookies only work for one computer that is connecting, and even then will only work if the client accepts session works, and thus they are client-side.. Quote Link to comment https://forums.phpfreaks.com/topic/53153-persistant-array-held-in-memory-between-connections/#findComment-262587 Share on other sites More sharing options...
Diego17 Posted May 27, 2007 Share Posted May 27, 2007 I understand only a large number is stored client side to identify the session. All other data is stored server-side. Otherwise session.save_path string   session.save_path defines the argument which is passed to the save handler. If you choose the default files handler, this is the path where the files are created. Defaults to /tmp doesn't make sense. Quote Link to comment https://forums.phpfreaks.com/topic/53153-persistant-array-held-in-memory-between-connections/#findComment-262633 Share on other sites More sharing options...
Azu Posted June 7, 2007 Author Share Posted June 7, 2007 Thanks I am looking for an entirely server side solution that won't be specific to a single client connection though :s This will be often accessed directly by another PHP process without any client, and will also be accessed by some other computers, and it is important that the data won't be specific to a single connection.. sorry if I'm not making sense I'm really sleepy.. x_x Quote Link to comment https://forums.phpfreaks.com/topic/53153-persistant-array-held-in-memory-between-connections/#findComment-270009 Share on other sites More sharing options...
trq Posted June 7, 2007 Share Posted June 7, 2007 You'd need to either store your values in a database or flatfile. Quote Link to comment https://forums.phpfreaks.com/topic/53153-persistant-array-held-in-memory-between-connections/#findComment-270070 Share on other sites More sharing options...
Azu Posted June 11, 2007 Author Share Posted June 11, 2007 Basically I'm looking for something like http://www.danga.com/memcached/ but one that doesn't need PEAR/PECL. Quote Link to comment https://forums.phpfreaks.com/topic/53153-persistant-array-held-in-memory-between-connections/#findComment-272369 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.