ftp_sockets::_exec() –

You appear to be a bot. Output may be restricted

Description

Usage

ftp_sockets::_exec( $cmd, $fnction );

Parameters

$cmd
( mixed ) required
$fnction
( mixed ) optional default: _exec –

Returns

void

Source

File name: wordpress/wp-admin/includes/class-ftp-sockets.php
Lines:

1 to 15 of 15
  function _exec($cmd, $fnction="_exec") {
    if(!$this->_ready) {
      $this->PushError($fnction,'Connect first');
      return FALSE;
    }
    if($this->LocalEcho) echo "PUT > ",$cmd,CRLF;
    $status=@socket_write($this->_ftp_control_sock, $cmd.CRLF);
    if($status===false) {
      $this->PushError($fnction,'socket write failed', socket_strerror(socket_last_error($this->stream)));
      return FALSE;
    }
    $this->_lastaction=time();
    if(!$this->ftp_sockets::_readmsg($fnction)) return FALSE;
    return TRUE;
  }
 

 View on GitHub View on Trac