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

FTP client object library. More...

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

FTP client object library.

Engine / Object Library

Author
CaMykS Team camyk.nosp@m.s.co.nosp@m.ntact.nosp@m.@gma.nosp@m.il.co.nosp@m.m
Version
1.0.0.1
Date
Creation: Mar 2018
Modification: Jul 2025
Note
This program is distributed as is - WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. FTPClient class.

Constructor & Destructor Documentation

◆ __construct()

FTPClient::__construct ( )

Class constructor.

◆ __destruct()

FTPClient::__destruct ( )

Class destructor.

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: