public static function getTmpDir() { if (is_null(self::$TmpDir)) { self::$TmpDir = ini_get("upload_tmp_dir"); } return self::$TmpDir; }