Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

PHP ftp_mkdir() Function

PHP ftp_mkdir() Function


PHP FTP Reference Manual 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


PHP FTP Reference Manual Complete PHP FTP Reference Manual