Reading & Updating Content of a file
This script shows an example of a counter being incremented every time the page is loaded. This is achieved by reading a file line by line using the fgets function and exctracting the 2 fields (one for the date one for the counter). The file is then being updated. There is a live example.