TwistPHP Documentation

FTP

File path: dist/twist/Core/Helpers/FTP.helper.php
Namespace: Twist\Core\Helpers
Extends: Base

Type: Class

FTP — Connect to an FTP server via PHP with the ability to browse and create directories, upload, download and delete files. The ability to choose Passive and Active connection mode is also present if using Native support.

Example Usage

<?php
//Call the function disconnect with the example vars
Twist::FTP() -> disconnect();

Method List

Method Access Returns
__constructconstructvoid
connectpublicvoid
disconnectpublicvoid
loginpublicvoid
passiveModepublicvoid
systemNamepublicvoid
featureListpublicvoid
featureSupportedpublicvoid
getCurrentDirectorypublicvoid
changeDirectorypublicvoid
isDirectorypublicvoid
makeDirectorypublicvoid
removeDirectorypublicvoid
listDirectorypublicvoid
renamepublicvoid
uploadpublicvoid
downloadpublicvoid
deletepublicvoid
chmodpublicvoid
sizepublicvoid
modifiedpublicvoid