WordPress at Your Fingertips
function is not described

ftp_base::SetType() public WP 1.0

{} It's a method of the class: ftp_base{}

No Hooks.

Return

null. Nothing.

Usage

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

Code of ftp_base::SetType() WP 5.8.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;
}