trying to make a web service in php