ftp_base::restore
Method of the class: ftp_base{}
No Hooks.
Returns
null. Nothing (null).
Usage
$ftp_base = new ftp_base(); $ftp_base->restore( $from );
- $from(required)
- .
ftp_base::restore() ftp base::restore code WP 7.0
function restore($from) {
if(!isset($this->_features["REST"])) {
$this->PushError("restore", "not supported by server");
return FALSE;
}
if($this->_curtype!=FTP_BINARY) {
$this->PushError("restore", "cannot restore in ASCII mode");
return FALSE;
}
if(!$this->_exec("REST ".$from, "restore")) return FALSE;
if(!$this->_checkCode()) return FALSE;
return TRUE;
}