/** * Returns a temporary filename using tempnam() and File::tmpDir(). * * @static * @access public * @param string $dirname Optional directory name for the tmp file * @return string Filename and path of the tmp file */ function tmpFile($dirname = null) { if (!isset($dirname)) { $dirname = File_Util::tmpDir(); } return tempnam($dirname, 'temp.'); }
/** * @deprecated Use File_Util::tmpDir() instead. */ function getTempDir() { require_once 'File/Util.php'; return File_Util::tmpDir(); }