Updates the index.php file.