src/Files/FtpFile.php
public function wget($httpFile, $remote, $mode = FTP_BINARY)
    {
        if (! ini_get('allow_url_fopen')) {
            throw new \RuntimeException('allow_url_fopen must enabled');
        }
        if (! $handle = fopen($httpFile)) {
            throw new \RuntimeException('File can not opened');
        }
        if (! ftp_fput($this->session, $remote, $handle, $mode) ) {
            throw new FileException('File not uploaded to ftp server');
        }
        fclose($handle);
        return true;
    }
public function wget($httpFile, $remote, $mode = FTP_BINARY)
    {
        if (! ini_get('allow_url_fopen')) {
            throw new \RuntimeException('allow_url_fopen must enabled');
        }
        if (! $handle = fopen($httpFile)) {
            throw new \RuntimeException('File can not opened');
        }
        if (! ftp_fput($this->session, $remote, $handle, $mode) ) {
            throw new FileException('File not uploaded to ftp server');
        }
        fclose($handle);
        return true;
    }
public function wget ( $ httpFile , $ remote , $ mode = FTP_BINARY ) { if ( ! ini_get ( 'allow_url_fopen' ) ) { throw new \ RuntimeException ( 'allow_url_fopen must enabled' ) ; } if ( ! $ handle = fopen ( $ httpFile ) ) { throw new \ RuntimeException ( 'File can not opened' ) ; } if ( ! ftp_fput ( $ this -> session , $ remote , $ handle , $ mode ) ) { throw new FileException ( 'File not uploaded to ftp server' ) ; } fclose ( $ handle ) ; return true ; }
Upload file to ftp server from http address

@link http://php.net/ftp_fput Php manuel
@access public
@param string $httpFile http file name with address
@param string $remote file name to upload ftp server
@param string $mode Upload mode FTP_BINARY or FTP_ASCII
@return boolean true if success
@throws FileException|RuntimeException
Upload file to ftp server from http address