code is te downloaden op http://phphulp.chessweb.eu/content/rating.zip