PHP ftp_mkdir() Function

The ftp_mkdir() function is used to creates a directory on the FTP server. This function was introduced in PHP 4.

Syntax:

ParameterDescriptionIs compulsory
ftp_streamThe link identifier of the FTP connection.compulsory
directoryThe name of the directory that will be created.compulsory

Returns

The ftp_mkdir() function returns the name and path of the new directory on success or FALSE on failure.

Example 1

Output:


PHP ftp mkdir() Function

Example 2

Output:


PHP ftp mkdir() Function
Next TopicPHP FTP




Latest Courses