Actually tempnam create a file : http://www.php.net/manual/en/function.tempnam.php