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.