php - FTP get all files -


I have successfully connected to my FTP using PHP and I can see using these files: Ftp_nlist

But is it an easy way to download all these files in the existing file?

How can I not see any examples that can not be seen?

Thanks

There is one more simple solution ....

List files in an array and download each file individually.

Something like this:

$ contents = ftp_nlist ($ conn_id, ".");

foreach ($ content and $ value) {$ result = ftp_fget ($ conn_id, $ local, and $ value, FTP_BINARY); }

You may have a bit of code ...

Comments