How to create file with unique file name in PHP

1 Answer

0 votes
// string tempnam(string $dir , string $prefix)

$tmpfilename = tempnam("/tmp", "qq");

echo $tmpfilename;


 
/*
run:
     
C:\Users\LaLaLa\AppData\Local\Temp\qqFD1D.tmp 
     
*/

 



answered Jul 21, 2016 by avibootz

Related questions

...