brian914 Posted June 8, 2012 Share Posted June 8, 2012 I am building a php site and would like to keep all my page titles, copy, and certain image references inside a json file, so I can edit that info more easily and have it all in one place. I know how to load the json, but am wondering if there was a way to load it where it would only load once and then be stored in a variable that was available from any page. Maybe load it front he header include and store it in a session variable? I am pretty new to php, so hoping for some advice on how to do this best. Thanks a lot! Quote Link to comment https://forums.phpfreaks.com/topic/263875-caching-loaded-json-data/ Share on other sites More sharing options...
scootstah Posted June 8, 2012 Share Posted June 8, 2012 Maybe load it front he header include and store it in a session variable? So did you try that? Quote Link to comment https://forums.phpfreaks.com/topic/263875-caching-loaded-json-data/#findComment-1352274 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.