TwistPHP Documentation

upload

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

uploadUpload a file to the remote FTP server

Parameters

Name Type Description
$strLocalFilenamestringn/a
$strRemoteFilenamestringn/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
$strLocalFilename 'foo';
$strRemoteFilename 'foo';
$strMode 'A';

//Call the function upload with the example vars
$resNative = new \Twist\Core\Models\FTP\Native();
$resNative -> upload($strLocalFilename$strRemoteFilename$strMode);