ftp_nlist() problem trying to list your ftp directories

Status
Not open for further replies.

goodevil666

New Member
Messages
3
Reaction score
0
Points
0
I'm creating online FTP client with php right now, and while testing it on various FTP servers, I noticed it doesn't work on your FTP. ftp_nlist() should return everything in form "/directory_name", "/file_name (if deeper "/directory_name/directory_name"). However on your FTP it simply returns "directory_name", "file_name" making deeper browsing impossible. I want to make my program compatible with all FTPs, so please help me. Maybe somebody already contacted you with same problem.
 

goodevil666

New Member
Messages
3
Reaction score
0
Points
0
I have found workaround using ftp_rawlist combined with string parsing. Apparently problem is in FTP configuration, some servers (including this one) simply doesn't allow to retrieve full path to directories and file (as far as my knowledge from google goes).
For me its solved, but I will keep this open for community contributions for a week. I'm always happy to learn something new from fellow programmers :)
 
Status
Not open for further replies.
Top