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.
| Ratings | Utility |
Consistency |
Documentation |
Examples |
Tests |
Videos |
Overall |
Rank |
| All time: |
Sufficient (75.0%) |
Good (87.5%) |
- |
Good (87.5%) |
- |
- |
Not sure (55.0%) |
1020 |
| Month: |
Not yet rated by the users |
No application links were specified for this class.

If you know an application of this package, send a message to the
author to add a link here.
| File |
Role |
Description |
daystats.php |
Example |
Stats of everyday with email option |
db.php |
Class |
Functions, Overview, Documentation, Examples and Version Control |
redir.php |
Example |
A simple counter and stats using the SimpleDB |