progress commit, php implementation (halfway)