public static function createTempDir()
    {
        do {
			$folder = sys_get_temp_dir().DIRECTORY_SEPARATOR."tmp".mt_rand().DIRECTORY_SEPARATOR;
		} while (file_exists($folder));
		mkdir($folder);
		return $folder;
    }
public static function createTempDir()
    {
        do {
			$folder = sys_get_temp_dir().DIRECTORY_SEPARATOR."tmp".mt_rand().DIRECTORY_SEPARATOR;
		} while (file_exists($folder));
		mkdir($folder);
		return $folder;
    }
public static function createTempDir ( ) { do { $ folder = sys_get_temp_dir ( ) . DIRECTORY_SEPARATOR . "tmp" . mt_rand ( ) . DIRECTORY_SEPARATOR ; } while ( file_exists ( $ folder ) ) ; mkdir ( $ folder ) ; return $ folder ; }
creates a directory in the system's temp dir.

@author Lionel Lecaque, <lionel@taotesting.com>
@return string The path to the created folder.
creates a directory in the system s temp dir .