OK, I hope someone is still interested despite the delay.
First, note this: these files are ment to be used ONLY LOCALLY, there might be huge security holes so I suggest you don't create a public site with this script.
I originally made the page for my own fun so the code is quite a spaghetti. There are some commenting, hope they help a bit if you want to modify the code

So, do not expect anything well structured, this is just "code as you feel", with only few functions and classes.
I assume you have a web server with php capabilities and a MySQL server, running on localhost. All can be acquired as freeware. In PHP, I have notices disregarded,
error_reporting = E_ALL & ~E_NOTICE
1) Get
http://pelit.koillismaa.fi/fb2k/foo_stats.zip and unzip to some folder your web server can use.
2) Create a MySQL database called "fb2k", or change the database name on "functions.inc", row 7. There are defined MySQL user and password, too.
3) Make sure you have a foo_text play history file. I have told the required formatting earlier on this thread. Add as a first row
[1 playback history start: 04/06/19 02:40]
(Or, well, whatever you want as long there is [1 ... ]).
4) Run
http://localhost/your_foo_stats_folder/sta...hp?initialize=1. There might be a PHP error.
5) Click "Full analyze".
Should work fine now. Well, I guess I have forgotten something so just report the errors and I'll try to see what's going wrong

I did not include cover and lyrics functions. This is beacause my own functions work mostly for metal music only and I don't want to create any unnecessary traffic on the cover and lyrics sites. If you can do PHP, the functions can be added to "album.inc", rows 170 and 189, function calls on rows 89 and 107. When fetched, the cover image and lyrics will be saved locally, so PHP needs write access to "covers" folder. Furthermore, PHP needs write access to "config.txt", too.
PM me if you think you can assure me that I should send the album.inc-that-works-only-for-metal.
Urgh. I've taken a couple of beers and a lot of coffee so please just bear if there is some inconsistency and report clearly what's missing

edit: Oh, the default location for the play history file is C:\foo_play_history.txt. Can be changed in the config.txt, directly or via the "Settings" page.
edit: Oh2, in the settings page (or directly in config), define starting index to be 1 instead of 3. Fixed now in the zip file, too.