TwistPHP Documentation

download

File path: dist/twist/Core/Models/FTP/Socket.model.php
Namespace: Twist\Core\Models\FTP
Extends:

downloadDownload a file from the remote FTP server

Parameters

Name Type Description
$strRemoteFilenamestringn/a
$strLocalFilenamestringn/a
[$strMode = 'A']stringn/a

Return Values

void — No return information has been documented for this function.

Example

<?php
//Set the variables for the example
$strRemoteFilename 'foo';
$strLocalFilename 'foo';
$strMode 'A';

//Call the function download with the example vars
$resSocket = new \Twist\Core\Models\FTP\Socket();
$resSocket -> download($strRemoteFilename$strLocalFilename$strMode);