From: Oliver B. <ob...@de...> - 2004-01-26 21:40:49
|
Reini Urban wrote: [...] > Persuaded. > But I would like to seperate the config from the startup file. > lib/config sanifies the config settings, so PHPWIKI_DIR."/config.php" > would be fine. Maye I didn't understand what you mean, but isn't this already the case? The (wikiname).php contains the specific settings, and includes index.php. This way I had to set only 'WIKI_NAME', 'ADMIN_USER', 'ADMIN_PASSWD', 'ENCRYPTED_PASSWD', 'WIKI_PGSRC' and $DBParams['directory'] in (wikiname).php I like this. It's simple but absolutely flexible. Or do you only think about putting index.php in another directory? > >>This is much easier to install and maybe easier to maintain then the > > > > Maintenance is harder, IMO. > > > > In which manner do you think the installation will be easier than > > now? > > Most of the local apache/php settings could be calculated automatically. > One should only define if e.g. USE_PATH_INFO = true or false, and the > appropriate VIRTUAL_PATH, DATA_PATH settings can be calculated. Already worked automagically for me, but I'm no expert. > Also applied .htaccess samples > Same for database and authorization settings, which depend on the > available libraries and services. Maybe difficult: if there is more than ony database option? If there is an existing database? Like Zot O'Connor, I also think "that web based configuration and flat file config are not incongruous". Storing the config in some non- php but plain text "database" is o.k., and maybe simpler to process by a web based configuration tool, because it has a fixed format. But I wonder whether such a configuration tool is worth the effort (initial and maintenance). I tried the configurator only once and I had not the impression that it made things noticeable easier than editing a .php file. The index.php is large, but well documented and not too difficult to edit. Maybe it would help to change the order of the entries: first those settings being edited most likely, later the more exotic. Oliver -- Oliver Betz, Muenchen |