ftp_base::_settype
Method of the class: ftp_base{}
No Hooks.
Returns
null
. Nothing (null).
Usage
$ftp_base = new ftp_base(); $ftp_base->_settype( $mode );
- $mode
- .
Default: FTP_ASCII
ftp_base::_settype() ftp base:: settype code WP 6.8.1
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; }