added php code to index