Working with Configuration Files |
(05-29-2018, 07:06 AM)dave friend Wrote: A follow-up question. I'm not sure if I understand you correctly, - but I may mention an implementation which covers my needs very well. I've an app which I deploy on multiple sites, - which has different configurations. I've customized the index.php. Based on a logic where I look for a folder under config which has a name equal the current hostname using the gethostname() function. If the "hostname" folder exist, - all configuration files are read from this folder. If the folder doesn't exist, - default config files are read from /config. I feel this is a very flexible solution. |
Messages In This Thread |
Working with Configuration Files - by dave friend - 05-27-2018, 11:59 AM
RE: Working with Configuration Files - by kilishan - 05-28-2018, 08:33 PM
RE: Working with Configuration Files - by dave friend - 05-29-2018, 07:06 AM
RE: Working with Configuration Files - by geirarnesen - 05-29-2018, 12:03 PM
RE: Working with Configuration Files - by kilishan - 05-29-2018, 07:26 AM
RE: Working with Configuration Files - by b126 - 03-06-2024, 10:41 AM
RE: Working with Configuration Files - by kilishan - 03-06-2024, 12:24 PM
RE: Working with Configuration Files - by b126 - 03-07-2024, 03:56 AM
RE: Working with Configuration Files - by Msobomvu - 07-10-2018, 03:22 AM
RE: Working with Configuration Files - by davis.lasis - 03-07-2024, 11:09 AM
|