PHP ftp_mlsd() Function

PHP FTP Reference : Returns the list of files from the "images" directory

Definition and Usage

The ftp_mlsd() function returns the list of files in the specified directory.

Syntax

ftp_mlsd(ftp_conn, dir);

Parameter Values

Parameter Description
ftp_conn Required. Specifies the FTP connection to use
dir Required. Specifies the name of the directory to be listed. Use "." to get the current directory

Technical Details

Return Value: An array with file info from the specified directory on success, FALSE on failure
PHP Version: 7.2+

❮ PHP FTP Reference