Login   Register  
PHP Classes

SimpleDB: Store and read arrays from file based databases

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2001-09-10 (13 years ago) RSS 2.0 feedStarStarStar 55%Total: 3,162 This week: 1All time: 1,054 This week: 1,364Down
Version License Categories  
simpledb 1.0GNU Lesser General Publ...Databases, Statistics, Files and Folders
Description Author  

The SimpleDB class implements a PHP algorithm to store associative arrays in files without using any PHP database function.

The key feature is the use of flock to prevent corrupting files.

If you do not have a database and want to create a simple application, this is a good option for you.

With the SimpleDB class come two example applications of counters.

- SimpleDayStats: create a log of number of visitors in site and display in a administration area with password the statistics. This script also sends a daily email with the visitors of the last day.

- SimpleRedir: Redirect the browser to a specified URL and increase in the DB the counter of that page. Also has an administration area with password to display the statistics.

Picture of Roberto Bertó
Name: Roberto Bertó <contact>
Classes: 9 packages by
Country: Brazil Brazil
Age: 31
All time rank: 896 in Brazil Brazil
Week rank: 751 Down63 in Brazil Brazil Down

  Files folder image Files  
File Role Description
Accessible without login Plain text file daystats.php Example Stats of everyday with email option
Plain text file db.php Class Functions, Overview, Documentation, Examples and Version Control
Accessible without login Plain text file redir.php Example A simple counter and stats using the SimpleDB

 Version Control Unique User Downloads Download Rankings  
 0%Total:3,162All time:1,054
 This week:1This week:1,364Down
 User Ratings  
 All time