We should be looking for configuration in several locations, and assign a class (in a dictionary sense) depending on which we find:
The value of $_SERVER['ARSSE_CONFIG'] (or possibly a registry key, on Windows) or command line option (custom)
A file named config.php in dirname($_SERVER['PHP_SELF']) (local)
/etc/arsse/config.php or on Windows %programdata%\MensBeam\arsse\config.php (global)
The class would affect some configuration defaults, such as the location of the SQLite database (/var/lib/arsse/arsse.db for global), logging settings, and perhaps other things.
Eventually this may perhaps be extended to accommodate user-global configurations.
We should be looking for configuration in several locations, and assign a class (in a dictionary sense) depending on which we find:
1. The value of `$_SERVER['ARSSE_CONFIG']` (or possibly a registry key, on Windows) or command line option (custom)
2. A file named `config.php` in `dirname($_SERVER['PHP_SELF'])` (local)
3. `/etc/arsse/config.php` or on Windows `%programdata%\MensBeam\arsse\config.php` (global)
The class would affect some configuration defaults, such as the location of the SQLite database (`/var/lib/arsse/arsse.db` for global), logging settings, and perhaps other things.
Eventually this may perhaps be extended to accommodate user-global configurations.
jking
added this to the 0.2.0 milestone 6 years ago
We should be looking for configuration in several locations, and assign a class (in a dictionary sense) depending on which we find:
$_SERVER['ARSSE_CONFIG']
(or possibly a registry key, on Windows) or command line option (custom)config.php
indirname($_SERVER['PHP_SELF'])
(local)/etc/arsse/config.php
or on Windows%programdata%\MensBeam\arsse\config.php
(global)The class would affect some configuration defaults, such as the location of the SQLite database (
/var/lib/arsse/arsse.db
for global), logging settings, and perhaps other things.Eventually this may perhaps be extended to accommodate user-global configurations.