Home > PHP > Function > FTP > ftp_mkdir()

ftp_mkdir()

ftp_mkdir - Creates a directory

Syntax

string ftp_mkdir (resource $ftp_stream, string $directory)

Arguments

  • ftp_stream - The link identifier of the FTP connection.
  • directory - The name of the directory that will be created.

Description

Creates the specified directory on the FTP server.

Version

PHP 4, 5

Return value

Returns the newly created directory name on success or FALSE on error.