Get list of files with file information:
The output could look something like this:
The ftp_rawlist() function returns a list of files with file information (from a specified directory on the FTP server).
Parameter | Description |
---|---|
ftp_connection | Required. Specifies the FTP connection to use |
dir | Required. Specifies the directory path. May include arguments for the LIST command. Tip: Use "." to specify the current directory |
recursive | Optional. By default, this function sends a "LIST" command to the server. However, if the recursive parameter is set to TRUE, it sends a "LIST -R" command |
Return Value: | Returns an array where each element corresponds to one line of text. No parsing is performed |
---|---|
PHP Version: | 4+ |
PHP Changelog: | The recursive parameter was added in PHP 4.3 |