ftp_base::_settype
Метод класса: ftp_base{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$ftp_base = new ftp_base(); $ftp_base->_settype( $mode );
- $mode
- .
По умолчанию:FTP_ASCII
Код ftp_base::_settype() ftp base:: settype WP 7.0.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;
}