Complete PHP FTP Reference
The ftp_rawlist() function returns a detailed list of files in the specified directory of the FTP server.
| Parameter | Description |
|---|---|
| ftp_connection | Required. Specifies the FTP connection to use |
| dir | Required. Specifies the directory. 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. |
Note: This function returns the server response as an array. No parsing is performed.
The output of the code above could be something like this:
Complete PHP FTP Reference
Your message has been sent to W3Schools.