todo.php fwrite() function