Current Location: Home> Function Categories> ftp_mkdir

ftp_mkdir

Create a new directory on the FTP server.
Name:ftp_mkdir
Category:Uncategorized
Programming Language:php
One-line Description:Create a new directory on the FTP server.

Definition and usage

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

实例

<?php
$conn = ftp_connect("ftp.testftp.com") or die("Could not connect");
ftp_login($conn,"admin","ert456");

echo ftp_mkdir($conn,"testdir");

ftp_close($conn);
?>

输出:

/testdir

grammar

 ftp_mkdir ( ftp_connection , dir )
parameter describe
ftp_connection Required. Specifies the FTP connection to be used (the identifier of the FTP connection).
dir Required. Specifies the name of the directory to be created.

illustrate

Create a new directory on the FTP server with the directory name named parameter dir .

If successful, return the newly created directory name, otherwise return false.

Similar Functions
Popular Articles