Description
This function creates a new FTP account.
Warning:
- UAPI (recommended) —
Ftp::add_ftp
— This function creates an FTP account. - cPanel API 2 —
Ftp::addftp
— This function creates an FTP account.
Examples
Parameters
Parameter |
Type |
Description |
Possible values |
Example |
user |
string |
Required The FTP username. |
A valid FTP username on the account. |
user |
pass |
string |
Required The FTP password. |
A secure password. |
12345luggage |
homedir |
string |
The FTP account's home directory. If you do not specify a path, the FTP account uses the cPanel account's home directory. |
A valid path, relative to the cPanel account's home directory. |
public_ftp |
quota |
Boolean |
The quota of the new FTP account. This value defaults to 0, which grants an unlimited quota. |
|
0 |
disallowdot |
Boolean |
Whether to strip the dots from the username. This value defaults to 1. |
|
0 |
homedir2 |
string |
Note: We deprecated this parameter in cPanel & WHM version 11. |
|
|
Returns
This function does not return output.