TwistPHP Documentation

connect

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

connectOpen a new FTP connection

Parameters

Name Type Description
$strHoststringn/a
$intPortintegern/a

Return Values

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

Example

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

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