tempnam

It create file with unique file name

Example

<?php

echo tempnam(“/var/www/test/”,”test.txt”);

?>

Output

/var/www/test/test.txtcpijNs

Share