public static function getFile($tmp = true, $name = null)
    {
        return ($tmp ? realpath(sys_get_temp_dir()) : '').'/'.(null === $name ? uniqid() : $name);
    }
public static function getFile($tmp = true, $name = null)
    {
        return ($tmp ? realpath(sys_get_temp_dir()) : '').'/'.(null === $name ? uniqid() : $name);
    }
public static function getFile ( $ tmp = true , $ name = null ) { return ( $ tmp ? realpath ( sys_get_temp_dir ( ) ) : '' ) . '/' . ( null === $ name ? uniqid ( ) : $ name ) ; }
Gets the file.

@param bool        $tmp  TRUE if the file should be in the "/tmp" directory else FALSE.
@param string|null $name The name.

@return string The file.
Gets the file .