ftp_pure::_exec
Method of the class: ftp_pure{}
No Hooks.
Returns
null. Nothing (null).
Usage
$ftp_pure = new ftp_pure(); $ftp_pure->_exec( $cmd, $fnction );
- $cmd(required)
- .
- $fnction
- .
Default: "_exec"
ftp_pure::_exec() ftp pure:: exec code WP 6.9
function _exec($cmd, $fnction="_exec") {
if(!$this->_ready) {
$this->PushError($fnction,'Connect first');
return FALSE;
}
if($this->LocalEcho) echo "PUT > ",$cmd,CRLF;
$status=@fputs($this->_ftp_control_sock, $cmd.CRLF);
if($status===false) {
$this->PushError($fnction,'socket write failed');
return FALSE;
}
$this->_lastaction=time();
if(!$this->_readmsg($fnction)) return FALSE;
return TRUE;
}