
 Stat scripts
 ============

 How to test...

 Compiling the files:
 solp -wb stats

 (count.sol will be compiled along)
 or solp -wb4 for php4 extensions.

 To test the demo, you must have these files:
 count.php              count visitors for a page
 stats.php              display full stats
 index.php              demo of a page
 demo.php               demo of a second page
 index.dat              file counter of the index page for today
 demo.dat               file counter of the demo page for today
 stats.dat              file counter of all pages for each day


 Usage

 Replace index.php, demo.php by your real pages.
 Edit count.sol and change the array of .dat files.
 The main page calls the update function with the name of a counter, and the
flag set to 1, if this page must modify the stats.dat file. Only one page must
modify it.


 How this works...

 When the index or demo page is viewed, the associated index.dat or demo.dat
counter is incremented.
 When the day is changed, the stats.dat file is augmented of a line with the
counts read from all the .dat files.
 The stats.php file displays the results in a table, if computes also the
best days and the totals... Additionaly it displays the counters of each
page into a blue table.

