PHP Classes

SimpleDB: Store and read arrays from file based databases

Recommend this page to a friend!
  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 (14 years ago) RSS 2.0 feedStarStarStar 55%Total: 3,173 This week: 2All time: 1,081 This week: 539Up
Version License Categories
simpledb 1.0GNU Lesser Genera...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: 32
All time rank: 906 in Brazil Brazil
Week rank: 391 Down31 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  
This week:2
All time:1,081
This week:539Up
 User Ratings  
 All time