PHP playlist generator (recommendation engine)