I'm not sure what you're trying to do with these lines:
$uploadfile = "../Upload/Upload.txt";
$setfile = $unique_id.'-'$uploadfile;
At any rate, you should be getting a parse error with that second line. This would be valid:
$setfile = $unique_id . '-' . $uploadfile;
although I'm not sure it would produce what you want.
If you want the timestamp at the beginning of the file you're writing to, you could do it like this:
$fw = fwrite($fp, time() . $inputString);