Write single code to index.php