Description
This function creates a new blank file.
Warning:
- UAPI (recommended) — None.
- cPanel API 2 —
Fileman::mkfile
— This function creates a file.
Examples
Parameters
Parameter |
Type |
Description |
Possible values |
Example |
dir |
string |
Required The new file's directory. |
Any valid directory name on the server. |
public_html |
newfile |
string |
Required The new file's name. |
A valid filename. |
myfile |
template |
string |
Required The new file's template. |
|
.pl |
Returns
This function returns a message of success that contains the new file's name.