ftp_pure::_data_write() –

You appear to be a bot. Output may be restricted

Description

Usage

ftp_pure::_data_write( $mode, $fp );

Parameters

$mode
( mixed ) optional default: FTP_ASCII –
$fp
( mixed ) optional

Returns

void

Source

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

1 to 15 of 15
  function _data_write($mode=FTP_ASCII, $fp=NULL) {
    if(is_resource($fp)) $out=0;
    else $out="";
    if(!$this->_passive) {
      $this->SendMSG("Only passive connections available!");
      return FALSE;
    }
    if(is_resource($fp)) {
      while(!feof($fp)) {
        $block=fread($fp, $this->_ftp_buff_size);
        if(!$this->ftp_pure::_data_write_block($mode, $block)) return false;
      }
    } elseif(!$this->ftp_pure::_data_write_block($mode, $fp)) return false;
    return TRUE;
  }
 

 View on GitHub View on Trac