Easy Tutorial
❮ Filter Sanitize Email Php Pdo Constants ❯

PHP ftp_nlist() Function



Definition and Usage

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

If successful, it returns an array of filenames in the specified directory. If it fails, it returns FALSE.

Syntax

Parameter Description
ftp_connection Required. Specifies the FTP connection to use.
dir Required. Specifies the directory to check. Use "." to get the current directory.

Tips and Notes

Note: This function does not work with IIS (Internet Information Server). It returns nothing.


Example

The above code will output:

❮ Filter Sanitize Email Php Pdo Constants ❯