SQLconf is a small set of PHP functions which provide facilities for writing and reading configuration for your PHP scripts. Using MySQL as the backend and a minimal, automatically updated conf.php file, SQLconf provides a solution for both simple projects and larger, modular environments.
Because it can be easily modified. Because databases contain very smart code optimised for speed, and almost any other solution besides using plain define()-filled files would be slower. Because while editing one configuration value, it is much harder to mess up other values.
$value = getConf('myModule','myName);
// returns the value, such as "123"
$modconf = getConf('myModule');
// returns an array of all keys and values for module "myModule"
// adds or updates a new key/value pair for module "myModule"
It doesn't get any simpler than this, does it?
SQLconf was written by Max Timchenko. The idea came to him just as he was working on adding several new defines to a config.php on one of his websites. Since SQLconf was so useful to him, it had been touched up, had an install script and a readme file attached to it, and released into the big world.
Send thank-you e-mails, hate mail, bug reports, feature requests, and anything else besides spam to email@example.com.
Current version: 1.1
Released: Mar 1, 2003
Use the Official button:
Stats (Jan 24-May 1):
797 page visits
0 thank-you e-mails
19 spam e-mails
$0.00 in donations
Copyright © 2003 by Max Timchenko. All