PHP Scripts for Webservice