CaMykS  1.0-20231201
Public Member Functions | Private Attributes | List of all members
FTPClient Class Reference

Public Member Functions

 __construct ()
 
 __destruct ()
 
 __call ($method, $arguments)
 
 connect ($host, $ssl=false, $port=21, $timeout=60)
 
 ssl_connect ($host, $port=21, $timeout=60)
 
 write_content ($remoteFilePath, $content)
 

Private Attributes

 $connection
 Connection to server. More...
 

Detailed Description

FTPClient class.

Constructor & Destructor Documentation

◆ __construct()

FTPClient::__construct ( )

Class constructor.

Returns
void

◆ __destruct()

FTPClient::__destruct ( )

Class destructor.

Returns
void

Member Function Documentation

◆ __call()

FTPClient::__call (   $method,
  $arguments 
)

Magic method to catch all FTP commands from PHP.

Parameters
string$method
array$arguments
Returns
mixed

◆ connect()

FTPClient::connect (   $host,
  $ssl = false,
  $port = 21,
  $timeout = 60 
)

Explicitly define connect method to get connection object.

Parameters
string$host
boolean$ssl
integer$port
integer$timeout
Returns
boolean success

◆ ssl_connect()

FTPClient::ssl_connect (   $host,
  $port = 21,
  $timeout = 60 
)

Explicitly define ssl_connect method.

Parameters
string$host
integer$port
integer$timeout
Returns
boolean success

◆ write_content()

FTPClient::write_content (   $remoteFilePath,
  $content 
)

Write a file to the server directly from given content.

Parameters
string$remoteFilePath
string$content
Returns
boolean success

Member Data Documentation

◆ $connection

Resource FTPClient::$connection
private

Connection to server.


The documentation for this class was generated from the following file: