After I do:
$temp = tmpfile(); fwrite($temp, \"writing to tempfile\");
I\'d like to get a full path to the $temp file that
$temp
$path = tempnam(sys_get_temp_dir(), 'prefix');
See this example.