Query: tmpfile
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
TMPFILE(3) 1 TMPFILE(3) tmpfile - Creates a temporary fileSYNOPSISresource tmpfile (void )DESCRIPTIONCreates a temporary file with a unique name in read-write (w+) mode and returns a file handle . The file is automatically removed when closed (for example, by calling fclose(3), or when there are no remaining references to the file handle returned by tmpfile(3)), or when the script ends. For details, consult your system documentation on the tmpfile(3) function, as well as the stdio.h header file.RETURN VALUESReturns a file handle, similar to the one returned by fopen(3), for the new file or FALSE on failure.EXAMPLESExample #1 tmpfile(3) example <?php $temp = tmpfile(); fwrite($temp, "writing to tempfile"); fseek($temp, 0); echo fread($temp, 1024); fclose($temp); // this removes the file ?> The above example will output: writing to tempfileSEE ALSOtempnam(3), sys_get_temp_dir(3). PHP Documentation Group TMPFILE(3)
Related Man Pages |
---|
tmpfile(3) - redhat |
tmpfile(3) - debian |
libtmpfile(3) - centos |
tmpfile(3) - osf1 |
tmpfile(3) - xfree86 |
Similar Topics in the Unix Linux Community |
---|
'Can we not tempt you back?' |
Perl - CAPTURE query |
Replace 2nd column for each line in a csv file with fixed string+random number |
ls in specific columns |
Multiple attachments using mutt |