The tempnam() function creates a temporary file with a unique file name.
tempnam(dir, prefix)
dir - The directory where temporary files will be created.
Prefix - Beginning of file
tempnam() function returns the new temporary file name, or FALSE on failure.
<?php echo tempnam("C:\test</p><p>ew","TMP"); ?>
C:\test</p><p>ew\TMP1.tmp
The above is the detailed content of tempnam() function in PHP. For more information, please follow other related articles on the PHP Chinese website!