SetTimeout example

$this->_port_available=($port_mode==TRUE);
        $this->SendMSG("Staring FTP client class".($this->_port_available?"":" without PORT mode support"));
        $this->_connected=FALSE;
        $this->_ready=FALSE;
        $this->_can_restore=FALSE;
        $this->_code=0;
        $this->_message="";
        $this->_ftp_buff_size=4096;
        $this->_curtype=NULL;
        $this->SetUmask(0022);
        $this->SetType(FTP_AUTOASCII);
        $this->SetTimeout(30);
        $this->Passive(!$this->_port_available);
        $this->_login="anonymous";
        $this->_password="anon@ftp.com";
        $this->_features=array();
        $this->OS_local=FTP_OS_Unix;
        $this->OS_remote=FTP_OS_Unix;
        $this->features=array();
        if(strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') $this->OS_local=FTP_OS_Windows;
        elseif(strtoupper(substr(PHP_OS, 0, 3)) === 'MAC') $this->OS_local=FTP_OS_Mac;
    }

    
Home | Imprint | This part of the site doesn't use cookies.