Javatpoint Logo
Javatpoint Logo

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:

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





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