PHP ftp_mkdir() Function
Complete PHP FTP Reference Manual
Definition and Usage
The ftp_mkdir() function creates a new directory on the FTP server.
Returns the name and path of the new directory on success, or FALSE on failure.
Syntax
ftp_mkdir(ftp_connection,dir)
| Parameters | Description |
|---|---|
| ftp_connection | Required. Specifies the FTP connection to use. |
| dir | Required. Specifies the name of the directory to create. |
Example
The code above will output:
/testdir
Complete PHP FTP Reference Manual