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