If it helps I have a library I wrote to do such a thing I create a configuration file with categories ad read it in, store it in a session for users to access as the propigate throught the site. I have reused it for many apps. Has kind of windows ini structure:
[ENV]
rootpath=/;
mypath=/export/home/user
[SETTINGS]
textcolor=#234534;
etc...
this creates an associative array that I can access like so.
echo $Settings[SETTINGS][textcolor];
would it be of any help?