ftp_nlist
Parameters
ftp_streamThe link identifier of the FTP connection.
directoryThe directory to be listed. This parameter can also include arguments, eg. ftp_nlist($conn_id, "-la /your/dir"); Note that this parameter isn't escaped so there may be some issues with filenames containing spaces and other characters.
Return Values
Returns an array of filenames from the specified directory on success or FALSE on error.
Examples
