_data_read example

return FALSE;
        }
        if($this->_can_restore and $rest!=0) $this->restore($rest);
        if(!$this->_exec("RETR ".$remotefile, "get")) {
            $this->_data_close();
            return FALSE;
        }
        if(!$this->_checkCode()) {
            $this->_data_close();
            return FALSE;
        }
        $out=$this->_data_read($mode$fp);
        $this->_data_close();
        if(!$this->_readmsg()) return FALSE;
        if(!$this->_checkCode()) return FALSE;
        return $out;
    }

    function get($remotefile$localfile=NULL, $rest=0) {
        if(is_null($localfile)) $localfile=$remotefile;
        if (@file_exists($localfile)) $this->SendMSG("Warning : local file will be overwritten");
        $fp = @fopen($localfile, "w");
        if (!$fp) {
            
Home | Imprint | This part of the site doesn't use cookies.