ftp_pure::_exec

Advertisement

Syntax Syntax

ftp_pure::_exec( $cmd,  $fnction = "_exec" )

Source Source

File: wp-admin/includes/class-ftp-pure.php

	function _exec($cmd, $fnction="_exec") {
		if(!$this->_ready) {
			$this->PushError($fnction,'Connect first');
			return FALSE;
		}
		if($this->LocalEcho) echo "PUT > ",$cmd,CRLF;
		$status=@fputs($this->_ftp_control_sock, $cmd.CRLF);
		if($status===false) {
			$this->PushError($fnction,'socket write failed');
			return FALSE;
		}
		$this->_lastaction=time();
		if(!$this->_readmsg($fnction)) return FALSE;
		return TRUE;
	}

Advertisement

Advertisement

Leave a Reply