public function exec($command)
    {
        $result = @ftp_exec($this->connection, $command);
        
        if ($result === false) {
            throw new Exception('Unable to exec command');
        }

        return $this;
    }
public function exec($command)
    {
        $result = @ftp_exec($this->connection, $command);
        
        if ($result === false) {
            throw new Exception('Unable to exec command');
        }

        return $this;
    }
public function exec ( $ command ) { $ result = @ ftp_exec ( $ this -> connection , $ command ) ; if ( $ result === false ) { throw new Exception ( 'Unable to exec command' ) ; } return $ this ; }
Requests execution of a command on the FTP server

@param string $command

@return FTPClient
Requests execution of a command on the FTP server