ftp_base::Passive()publicWP 1.0

Method of the class: ftp_base{}

No Hooks.

Return

null. Nothing (null).

Usage

$ftp_base = new ftp_base();
$ftp_base->Passive( $pasv );
$pasv **
-
Default: NULL

ftp_base::Passive() code WP 6.5.2

function Passive($pasv=NULL) {
	if(is_null($pasv)) $this->_passive=!$this->_passive;
	else $this->_passive=$pasv;
	if(!$this->_port_available and !$this->_passive) {
		$this->SendMSG("Only passive connections available!");
		$this->_passive=TRUE;
		return FALSE;
	}
	$this->SendMSG("Passive mode ".($this->_passive?"on":"off"));
	return TRUE;
}