WordPress at Your Fingertips
function is not described

ftp_pure::_data_write_block() public WP 1.0

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

No Hooks.

Return

null. Nothing.

Usage

$ftp_pure = new ftp_pure();
$ftp_pure->_data_write_block( $mode, $block );
$mode (required)
-
$block (required)
-

Code of ftp_pure::_data_write_block() WP 5.8.2

function _data_write_block($mode, $block) {
	if($mode!=FTP_BINARY) $block=preg_replace("/\r\n|\r|\n/", $this->_eol_code[$this->OS_remote], $block);
	do {
		if(($t=@fwrite($this->_ftp_data_sock, $block))===FALSE) {
			$this->PushError("_data_write","Can't write to socket");
			return FALSE;
		}
		$block=substr($block, $t);
	} while(!empty($block));
	return true;
}