nadavgg Posted May 12, 2009 Share Posted May 12, 2009 Hi, I have a php file being called from many server, in this file I would like to load a configuration file, I would like to load the file once for all php request, how can I do it? Basically I would like to load the configuration file once and save its content in some kind of cache, then each PHP request will use this cache and save the resources in reading this configuration file over and over again. Many thanks. Quote Link to comment https://forums.phpfreaks.com/topic/157791-singelton-loading-configuration-file-once/ Share on other sites More sharing options...
JonnoTheDev Posted May 12, 2009 Share Posted May 12, 2009 http://www.phplibrairies.com/tutorial_design-pattern_en.html Quote Link to comment https://forums.phpfreaks.com/topic/157791-singelton-loading-configuration-file-once/#findComment-832254 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.