Does anyone have a good system for deciding what to put in the database and what to put in the config file.
My config file is a php array and I have a mysql database.
If for example I have a data set of 5 ‘rows’ that will rarely change (if ever) is it better to keep it in the config file?
I am looking for a rule that I can follow that will help me choose – if anyone has one.
It really depends on the data. The config file is really used for application specific settings, whereas your DB should contain the data that your app will use to serve its purpose.