I have an application written in PHP and there are a lot of custom variables. We implement a function in which the user can create sets of configurations and easily switch between them. How to save my configs? how is xml? in the .ini file? in multiple .ini files? in db?
What will provide maximum flexibility if we add fields in the future? Convenience of coding?
If I use db, I will have to use a separate file from the main application for reasons that should not be included, which made me avoid this. (In addition, we use .mdb files for our db.)
I followed the xml route, but I have problems adding and editing configurations using SimpleXML. In addition, the application must be compatible with php 5.1.6, and I'm a little nervous about some functions.
Never engaged in creating custom ini files ....
A little explanation: users will not touch files - they are non-technical. Therefore, the configuration of the source files will be done by us, but then we write a tool that will record their configuration in any format that we choose.
design php configuration
sprugman Apr 28 '09 at 15:55 2009-04-28 15:55
source share