The FTP class blindly assumes that the server it's connected to supports Unix style directory listing. This is not the case for non-configured Windows FTP servers. ftp_rawlist returns a list like this:
Here the result from ftp_rawlist is split by a number of spaces and then the list construct is used to extract the results into a variable. With Windows-style directory listings, this results in an Undefined Offset: 4
The FTP class blindly assumes that the server it's connected to supports Unix style directory listing. This is not the case for non-configured Windows FTP servers.
ftp_rawlist
returns a list like this:Here the result from
ftp_rawlist
is split by a number of spaces and then thelist
construct is used to extract the results into a variable. With Windows-style directory listings, this results in anUndefined Offset: 4