PHP ftp_mlsd() Function

The ftp_mlsd() function returns a list of file in the given directory. This function was introduced in PHP 7.2.0.

Syntax:

ParameterDescriptionIs compulsory
ftp_streamThe link identifier of the FTP connection.compulsory
directoryThe directory to be listed.compulsory

Return value:

The ftp_mlsd() function returns an array of arrays with file infos from the specified directory on success or FALSE on error.

Example 1

Output:


PHP ftp mlsd( ) Function

The ftp_mlsd() function was introduced in PHP 7.2.0 that's why this is not supported by FileZilla server.


Next TopicPHP FTP




Latest Courses