The ftp_mkdir() function creates a new directory on the FTP server.
ftp_mkdir — Creates a directory.
string ftp_mkdir ( resource $ftp_stream , string $directory )
Creates the specified directory on the FTP server.
Parameter | Description |
---|---|
ftp_connection | Required. Specifies the FTP connection to use |
dir | Required. Specifies the name of the directory to create |
Returns the newly created directory name on success or FALSE on error.