PHP ftp_mkdir() Function

PHP FTP Reference : Create a new directory on the FTP server

Definition and Usage

The ftp_mkdir() function creates a new directory on the FTP server.

Syntax

ftp_mkdir(ftp_conn, dir);

Parameter Values

Parameter Description
ftp_conn Required. Specifies the FTP connection to use
dir Required. Specifies the name of the directory to create

Technical Details

Return Value: The name of the new directory on success, FALSE on failure
PHP Version: 4+

❮ PHP FTP Reference