Home > PHP > Function > FTP > ftp_rawlist()

ftp_rawlist()

ftp_rawlist - Returns a detailed list of files in the given directory

Syntax

array ftp_rawlist (resource $ftp_stream, string $directory, bool $recursive)

Arguments

  • ftp_stream - The link identifier of the FTP connection.
  • directory - The directory path.
  • recursive - If set to TRUE, the issued command will be LIST -R.

Description

ftp_rawlist() executes the FTP LISTcommand, and returns the result as an array.

Version

PHP 4, 5

Return value

Returns an array where each element corresponds to one line of text.