Update: I’m now using Dean Allen’s Refer, and it’s excellent.
I was about halfway through writing up my own compact referrer-listing script in PHP, when I belatedly found that LittleGreenFootballs already has one, using almost exactly the same routines I was writing. Hmmm, should I be lazy just download theirs, or continue on mine and add MySQL functionality?