Temp Directory

function tempdir(){
$tempfile = tempnam('','');
if(file_exists($tempfile)) {unlink($tempfile); }
mkdir($tempfile);
if(is_dir($tempfile)){ return $tempfile; }
}

0 Comments

You must be logged in to post a comment.