I have a config file (.php) in my project, which contains an array with the settings for the all project. This array has a structure similar to this:
'db' =>
'prod' =>
'host' => ''
'dbname' => ''
'username' => ''
'password' => ''
'local' =>
'host' => ''
'dbname' => ''
'username' => ''
'password' => ''
'other' => 'settings'
My question is: how will I manage those double connection information ?
Should I, later in this file, if I am in local, put the local information in the prod array ? Or should I use multiple files for configuration, and include the good one in this config.php (which I would then include in every file of this project) ?
How would you do it ?
Thank you.