public function passive($passive = true)
    {
        $this->passive = $passive;

        if ($this->connection) {
            $result = ftp_pasv($this->connection, $passive);
            if ($result === false) {
                throw new Exception('Unable to change passive mode');
            }
        }

        return $this;
    }
public function passive($passive = true)
    {
        $this->passive = $passive;

        if ($this->connection) {
            $result = ftp_pasv($this->connection, $passive);
            if ($result === false) {
                throw new Exception('Unable to change passive mode');
            }
        }

        return $this;
    }
public function passive ( $ passive = true ) { $ this -> passive = $ passive ; if ( $ this -> connection ) { $ result = ftp_pasv ( $ this -> connection , $ passive ) ; if ( $ result === false ) { throw new Exception ( 'Unable to change passive mode' ) ; } } return $ this ; }
Changes passive mode,,,

@param bool $passive

@return FTPClient,
Changes passive mode