Update and rename temp.txt to index.php