updates index.php with php