Delivering the best Add-Ons in more than 37 languages.

中文(简体), English, हिन्दी/हिंदी, Español/Castellano, العربية, Русский язык, Français, 中文 (台灣), বাংলা, Bahasa Indonesia, اردو, Português, Deutsch, Bahasa Melayu (بهاس ملايو‎), 日本語 (にほんご), فارسی, Italiano, తెలుగు, Türkçe, ગુજરાતી, Język polski/polszczyzna, Tiếng Việt, ಕನ್ನಡ, Українська мова, ไทย
PHP Scripts / Miscellaneous

PHP Class for Storing Settings in INI or DB Files

— Add-On to

Subscribe to our feed to stay up to date!

New! Follow us as you want it!

PHP Class for Storing Settings in INI or DB Files - CodeCanyon Item for Sale


Ad: Bluehost hosting

PHP Storage Class is a very simple to use class which lets you store all your configuration and settings in simple configuration files. The class is very easy to use with any of your existing projects, just drop it in and start using.

Settings Class comes with two predefined drivers (1) File Driver (2) MySQL Driver – Using which you can easily switch between File based storage or MySQL based storage.

Usage is as simple as using two methods – You can easy select where you would like to store the settings, either in a settings file or in a database – You never have to change a single line of code





Optimized Disk I/O Performance

It is well known that Disk I/O is potentially blocking and becomes extremely crucial when it comes to the point of saving dozens of user settings during the page load operation. In order to reduce the interaction with the disk during each save operation (file mode) and as an optimization attempt to reduce the Disk I/O cycles, this script uses a concept of Lazy Saving which Queues all the write operations till the point where there are no more write operations and finally flushes them from Memory to Disk in one shot thus speeding up the entire process.

Other components in this categoryAll components of this author
CommentsFrequently asked questions and answers


30 October 12

Last Update:

Files Included:

Software Version:
PHP 5.x, MySQL 4.x


eCommerce, eCommerce, All Items, ini, mysql settings, php, php class, settings