Update writeFile.php