Quickie...
Is there a way to retrieve the path of a file created by tmpfile()?
tmpfile()
Or do I need to do it myself with tempnam()?
tempnam()
Like this
$path = array_search('uri', @array_flip(stream_get_meta_data($GLOBALS[mt_rand()]=tmpfile()))); file_put_contents($path, 'hello');