TwistPHP Documentation

connect

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

connectOpen a new FTP connection

Parameters

Name Type Description
$strHoststringn/a
[$intPort = 21]integern/a

Return Values

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

Example

<?php
//Set the variables for the example
$strHost 'foo';
$intPort 21;

//Call the function connect with the example vars
$resNative = new \Twist\Core\Models\FTP\Native();
$resNative -> connect($strHost$intPort);