WordPress at Your Fingertips
function is not described

ftp_base::Passive() public WP 1.0

{} It's a method of the class: ftp_base{}

No Hooks.

Return

null. Nothing.

Usage

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

Code of ftp_base::Passive() WP 5.8.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;
}