ftp_rawlist
Function • Params changed in PHP 8.1
Returns a detailed list of files in the given directory.
ftp_rawlist Function synopsis
ftp_rawlist(
FTP\Connection $ftp,
string $directory,
bool $recursive = false
): array|false
Parameters
$ftp
TypeFTP\Connection
$directory
Typestring
The directory path. May include arguments for the LIST
command.
$recursive
OptionalTypeboolDefault valuefalse
If set to true, the issued command will be LIST -R.
Return value
Typearray|false
Returns an array where each element corresponds to one line of text. Returns
false when passed $directory is invalid.
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.
Changes to the ftp_rawlist Function
PHP 8.1
- Parameter type added for parameter #1 (
$ftp):FTP\Connection
ftp_rawlist(
- $ftp,
+ FTP\Connection $ftp,
string $directory,
bool $recursive = false
): array|false PHP 8.0
- Return type added:
array|false - Parameter type added for parameter #2 (
$directory):string - Parameter type added for parameter #3 (
$recursive):bool - Parameter default value added for position #3 (
$recursive):false
ftp_rawlist(
$ftp,
- $directory,
+ string $directory,
- $recursive
+ bool $recursive = false
- )
+ ): array|false ftp_rawlist Function Availability
ftp_rawlist Function Availability| PHP Version | Availability |
|---|---|
| PHP 8.6Upcoming Release | Yes |
| PHP 8.5Supported (Latest) | Yes |
| PHP 8.4Supported | Yes |
| PHP 8.3Security-Fixes Only | Yes |
| PHP 8.2Security-Fixes Only | Yes |
| PHP 8.1Unsupported | Yes |
| PHP 8.0Unsupported | Yes |
| PHP 7.4Unsupported | Yes |
| PHP 7.3Unsupported | Yes |
| PHP 7.2Unsupported | Yes |
| PHP 7.1Unsupported | Yes |
| PHP 7.0Unsupported | Yes |
| PHP 5.6Unsupported | Yes |
| PHP 5.5Unsupported | Yes |
| PHP 5.4Unsupported | Yes |
| PHP 5.3Unsupported | Yes |