Javatpoint Logo
Javatpoint Logo

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:

Parameter Description Is compulsory
ftp_stream The link identifier of the FTP connection. compulsory
directory The 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





Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA