Adding PHP functionality to index page.