features example

 while($this->_code<200);
        $this->_ready=true;
        $syst=$this->systype();
        if(!$syst) $this->SendMSG("Cannot detect remote OS");
        else {
            if(preg_match("/win|dos|novell/i", $syst[0])) $this->OS_remote=FTP_OS_Windows;
            elseif(preg_match("/os/i", $syst[0])) $this->OS_remote=FTP_OS_Mac;
            elseif(preg_match("/(li|u)nix/i", $syst[0])) $this->OS_remote=FTP_OS_Unix;
            else $this->OS_remote=FTP_OS_Mac;
            $this->SendMSG("Remote OS: ".$this->OS_FullName[$this->OS_remote]);
        }
        if(!$this->features()) $this->SendMSG("Cannot get features list. All supported - disabled");
        else $this->SendMSG("Supported features: ".implode(", ", array_keys($this->_features)));
        return TRUE;
    }

    function quit($force=false) {
        if($this->_ready) {
            if(!$this->_exec("QUIT") and !$force) return FALSE;
            if(!$this->_checkCode() and !$force) return FALSE;
            $this->_ready=false;
            $this->SendMSG("Session finished");
        }
        
Home | Imprint | This part of the site doesn't use cookies.