◆ __construct()
FTPClient::__construct |
( |
| ) |
|
Class constructor.
- Returns
- void
◆ __destruct()
FTPClient::__destruct |
( |
| ) |
|
Class destructor.
- Returns
- void
◆ __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
◆ $connection
Resource FTPClient::$connection |
|
private |
The documentation for this class was generated from the following file: