Easy Tutorial
❮ Func Filesystem Tmpfile Func Array Key Exists ❯

PHP ftp_rawlist() Function



Definition and Usage

The ftp_rawlist() function returns a detailed list of files in the specified directory on the FTP server.

Syntax

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 the "LIST" command to the server. However, if the recursive parameter is set to TRUE, it sends the "LIST -R" command.

Tips and Notes

Note: This function returns the server's response as an array. It does not perform any parsing.


Example

The above code will output:


❮ Func Filesystem Tmpfile Func Array Key Exists ❯