I have written what I consider to be a nice ftp interface that can do almost everything (within the limits of php) now I have come accross a problem with my directories not listing. The way I am listing them is with the ftp_nlist(#) function. It is supposed to return all of the items in a directory including files and sub-directories. Then when I do a ftp_size(nlist results) a "-1" is supposed to be returned to indicate a directory, or some other value if it is a file. Well, my files are coming out great, but my directories aren't even showing up.
I talked to my sysadmin and we deduced that it was because we are using wu-ftpd 2.6.1 on the servers that we are conecting to. If ftpd 2.5.0 is on the server, it works fine.
This is really frustrating to me because somtimes this thing works, and sometimes it doesn't depending upon the server.
Does anyone know of a good fix for this problem?
Thanks,
Dan Bish