Basic template for web application in php