ftp_base::SetType

Advertisement

Syntax Syntax

ftp_base::SetType( $mode = FTP_AUTOASCII )

Source Source

File: wp-admin/includes/class-ftp.php

	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;
	}

Advertisement

Advertisement

Leave a Reply