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_ASCII

Code of ftp_base::_settype() WP 5.8.2

function _settype($mode=FTP_ASCII) {
	if($this->_ready) {
		if($mode==FTP_BINARY) {
			if($this->_curtype!=FTP_BINARY) {
				if(!$this->_exec("TYPE I", "SetType")) return FALSE;
				$this->_curtype=FTP_BINARY;
			}
		} elseif($this->_curtype!=FTP_ASCII) {
			if(!$this->_exec("TYPE A", "SetType")) return FALSE;
			$this->_curtype=FTP_ASCII;
		}
	} else return FALSE;
	return TRUE;
}