My inspiration for creating the San Andreas PHP Stats uploader stemmed from Ashy, who created a Vice City stats uploader (now defunct, see archive.org) a couple of years ago.
This transformed the ugly stats file that was generated into a much nicer page that was easy to read.
Making this for San Andreas was a lot harder than Vice City. Firstly, San Andreas only creates an .html file and not a .txt file. This means that when a user submits their San Andreas stats file it needs to have all its HTML stripped and create a .txt file from it, which is then read by PHP to obtain data for all your stats.