|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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? |
|
#2
|
||||
|
||||
|
I guess you would have to try to change dir.. although it is not foolprove since dir can be blocked for users...
__________________
And you know I mean that. |
|
#3
|
||||
|
||||
|
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>....
|
![]() |
| Viewing: Dev Shed Forums > System Administration > FTP Help > FTP-functions, list directories |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|