TwistPHP Documentation

connect

File path: dist/twist/Core/Utilities/FTP.utility.php
Namespace: Twist\Core\Utilities
Extends: Base

connectConnect to the remote FTP server

Parameters

Name Type Description
$strHoststringn/a
[$intPort = 21]integern/a
[$intConnectionTimeout = null]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;
$intConnectionTimeout null;

//Call the function connect with the example vars
Twist::FTP() -> connect($strHost$intPort$intConnectionTimeout);