Wrote basic RESTful web service with PHP