updated Sample Php App