download($rempath, $locpath[, $mode = 'auto'])
Parameters:
$rempath (string) – Remote file path
$locpath (string) – Local file path
$mode (string) – FTP mode, defaults to ‘auto’ (options are: ‘auto’, ‘binary’, ‘ascii’) Returns:
TRUE on success, FALSE on failure Return type:
bool
Downloads a file from your server. You must supply the remote path and the local path, and you can optionally set the mode. Example:
$this->ftp->download('/public_html/myfile.html', '/local/path/to/m