ftp_base::Passive()publicWP 1.0

Method of the class: ftp_base{}

No Hooks.

Return

null. Nothing.

Usage

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

ftp_base::Passive() code WP 6.1.1

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;
}