From: Reini U. <ru...@x-...> - 2002-09-15 14:54:21
|
Jeff Dairiki schrieb: > On Sun, 15 Sep 2002 12:50:11 +0100 > Reini Urban <ru...@x-...> wrote: > >>Maybe an INI style lib/config.ini >>lib/config.php parses this then and fills in the defaults. > > I'm not sure I see the advantage of an INI style config file > over an user-config.php. Readability. > Brainstorming... > > Maybe, since we have a configuration script, the configuration script > should do all the figuring of the defaults and autodetected values. > (I.e. everything that's now down in lib/config.php.) > Then it can generate a single config file with all required settings > as constants. Faster to load at run time --- though I doubt that's > our main speed bottleneck :-) Yes. Configurator.php should be called when no lib/config-user.php exists, the virgin setup. Then we can ensure that e.g. the admin password is encrypted, the include path and many more paths can be guessed automatically and good suggestions for VIRTUAL_PATH configurations can be choosen from. -- Reini Urban http://xarch.tu-graz.ac.at/home/rurban/ |