Exemplo n.º 1
0
 /**
  * Find the system's temporary directory.
  * (The function formerly known as sys_get_temp_dir())
  *
  * @return string the path to the system temporary directory
  */
 public static function getTempDir()
 {
     if (empty(SCA_Helper::$tmpdir)) {
         $temp_file = tempnam(null, 'SCA');
         SCA_Helper::$tmpdir = dirname(realpath($temp_file));
         unlink($temp_file);
     }
     return SCA_Helper::$tmpdir;
 }