Added PHP listener code