(PHP 3 >= 3.0.13, PHP 4, PHP 5)
ftp_rawlist -- Returns a detailed list of files in the given directoryftp_rawlist() executes the FTP LIST command, and returns the result as an array.
ftp_streamThe link identifier of the FTP connection.
directoryThe directory path.
recursiveIf set to TRUE, the issued command will be LIST -R.
Returns an array where each element corresponds to one line of text.
The output is not parsed in any way. The system type identifier returned by ftp_systype() can be used to determine how the results should be interpreted.