FTP client object library.
More...
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
- Copyright
- 2018 - 2025 CaMykS Team
- 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.
◆ __construct()
| FTPClient::__construct |
( |
| ) |
|
◆ __destruct()
| FTPClient::__destruct |
( |
| ) |
|
◆ __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: