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! 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? Link to comment https://forums.phpfreaks.com/topic/263875-caching-loaded-json-data/#findComment-1352274 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.