Hi,
 
i wont to find a special Dir on many FTP Server's over PHP.
For searching my Server's have an site command like "site dupe
"Dirname""
 
But if I try it with ftp_site I get only a bool back and not the search
result.
With a ftp_nlist I can't search Dir's only files.
And with ftp_rawlist I get this:
 total 3
drwxrwxrwx 4 user group 96 Oct 18 17:24 pub
drwxrwxrwx 29 user group 2000 Oct 31 03:58 bin
drwxrwxrwx 5 user group 120 Oct 18 17:23 misc
 
the code:
$dir=ftp_pwd($conn_id); 
$list=Array(); 
$list=ftp_rawlist($conn_id, "$dir"); 
$i=0; 
 
do{ 
   echo $list[$i], "<br>"; 
   $i++; 
}while($list[$i]);
 
But how to extract only the Dir name from this result, enter it, list
and so on.
Is there any other easier way to search for an Dir?
 
 
thx
 
Manuel


Reply via email to