Saturday, May 25, 2013

PHP Class for Storing Settings in INI or DB Files

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

PHP Class for Storing Settings in INI or DB Files his title this type of PHPScripts/Miscellaneous This time I will review,made by smart_techie, PHPScripts/Miscellaneous is sold at a price of $5 in CodeCanyon.
PHP Class for Storing Settings in INI or DB Files - CodeCanyon Item for Sale
ini // mysql settings // php // php class // settings //
Created 30 October 12
Last Update 30 October 12
Software Version PHP 5.x, MySQL 4.x, jQuery
Files Included PHP, SQL

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

Writing

 $config->set("page-settings","userbrowser","chrome"); 

Reading

 $config->get("page-settings","userbrowser"); 

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.

Related produck This user:smart_techie


PHP Profiler - Check & Debug Memory & Time Usage - CodeCanyon Item for Sale Mobile Sniffer Pro - Detection & Redirection Tool - CodeCanyon Item for Sale Website Diagnosis - Complete website checkup tool - CodeCanyon Item for Sale WP Link Validator - Detect Broken Links - CodeCanyon Item for Sale Link Validator - Detect Valid & Broken Links - CodeCanyon Item for Sale

More items by smart_techie

No comments:

Post a Comment