fixed fetch problem in php server code