Creates a temporary file
tmpfile ( void ) : resource
Returns a file handle, similar to the one returned by fopen(), for the new file or FALSE on failure.
<? $temp = tmpfile(); fwrite($temp, "writing to tempfile"); fseek($temp, 0); echo fread($temp, 1024); fclose($temp); // this removes the file ?>
writing to tempfile