added php script to get the user details in a json format