Helpful Information
 
 
Category: FTP Help
FTP-functions, list directories

Is it possible to get an array of the directories in the directory with the FTP-functions of PHP or in some other way?
With ftp_nlist you can get an array with the files in the directory but shouldn't there be any way to do this to find out the directories instead?

I guess you would have to try to change dir.. although it is not foolprove since dir can be blocked for users...

You know, when I come to think about it, dont dirs have <DIR> in front of them? so all you have to do is to run eregi and echo whatever goes after <DIR>....










privacy (GDPR)