blog.autopsy.se

basically; it sucks. everything sucks. but.. in a good way..

Reading config from database sucks!

I'm working on a new site and I wanted an easy way to read config for a user from the database. Earlier I've stored all the config variables in the user table, but this leaves a problem when developing; adding a new parameter means that you'll have to add a new entry in the user table. So, why not use one table for config and then have a default value stored in the database as user 0? Read more...

posted by ube in PHP and have No Comments