Added PHP server logic