PHP impl. RSPS