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_AUTOASCII
ftp_base::SetType() ftp base::SetType code WP 6.9.1
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;
}