fix syntax error and set ip address to localhost in sample php client