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.
require('sqlconf.php');
$value = getConf('myModule','myName);
// returns the value, such as "123"
$modconf = getConf('myModule');
// returns an array of all keys and values for module "myModule"
setConf('myModule','newKey','newValue');
// adds or updates a new key/value pair for module "myModule"
It doesn't get any simpler than this, does it?
SQLconf is released under GPL. You may download SQLconf as a ZIP file or as a tar.gz file. Read the readme.txt for the installation instructions, and enter the world of SQLconf :-)
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 sqlconf@maxvt.com.
If you are really impressed with SQLconf, it has saved you a lot of time and helped you much, consider donating a few bucks to the author. The author vows to spend the money on new programming books, legal software, and Yanni CDs…
What's new?
May 6 - Updated the statistics :)
Mar 1 - Version 1.1 is out! The changes are in conf.php file
generation - single quotes and ?> are escaped, and numbers are written
without quotes.
Jan 29 - 5 days after creating this page, first spam mailing
has been received. All mails from Taiwan will be filtered into trash from
now on.
Current version: 1.1
Released: Mar 1, 2003
Download:
ZIP file (5K)
tar/gz file (3K)
Feedback:
sqlconf@maxvt.com
Use the Official button:
![]()
Stats (Jan 24-May 1):
797 page visits
361 downloads
0 thank-you e-mails
19 spam e-mails
$0.00 in donations
Listed on:
HotScripts
TheCgiSite
DMOZ
Copyright © 2003 by Max Timchenko. All
rights reserved.