ftp_base::SetType()publicWP 1.0

Method of the class: ftp_base{}

No Hooks.

Return

null. Nothing (null).

Usage

$ftp_base = new ftp_base();
$ftp_base->SetType( $mode );
$mode **
-
Default: FTP_AUTOASCII

ftp_base::SetType() code WP 6.5.2

function SetType($mode=FTP_AUTOASCII) {
	if(!in_array($mode, $this->AuthorizedTransferMode)) {
		$this->SendMSG("Wrong type");
		return FALSE;
	}
	$this->_type=$mode;
	$this->SendMSG("Transfer type: ".($this->_type==FTP_BINARY?"binary":($this->_type==FTP_ASCII?"ASCII":"auto ASCII") ) );
	return TRUE;
}