What is the best way to store specific data and information in a web application?
The sorts of information I am talking about is one off, one time, stand-alone values. Mostly values that can be altered using an admin panel.
some examples of data I want to store:
- Site owner: description of job, who they are and what they do
- Toggles: true of false data. For example: to determine whether a section of the site is active; Essentially settings the owner of the site could manage
- colour schemes (as in the owner will set what the user will see)
- site logo (path to)
Obviously this data needs to be stored permanently i.e. if the web site is restarted the data still exists.
As far as I can see, my options are either: a Database or just a text file.
The conclusion that I came to was that using a database (row(col1 = data-type, col2 = value)), to me, seemed overkill and also constrained, but clean. Using a file would probably easier, but possibly messy and extra work to build a system to handle that file.
One advantage I see of using a file is that I can manually change values without running the site or a database manager (phpmyadmin). However, the site is going to be using a database anyway, and so part of me thinks that I should just use what is there instead of building a file manager.