This question already has an answer here:
I would like to store configuration data ( key value pairs ) which i will load in every request.
I know three methods, but I don't know, which is most professional way.
I store it in a table, where first column is the key, second is the value. And I run a
select * from table
when a browser request a page.I create a JSON file, and store it there. Then read the json file, and parse JSON
I create a php file, and the key-value pairs will be in an
array()
, and just include it
</div>