added code for simple php rest server