TwistPHP Documentation

FTP

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

Type: Utility

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