i just tried that and it did not even return the direcory name.
The code i have below will read some directories, but cannot open some for some reason.
foreach($directory as $dir){
if(ftp_chdir($conn_id, $home.'/'.$dir)){
echo "<br><b>".$dir." - ** Directory **</b>";
if($dirfile = ftp_nlist($conn_id, $home.$dir)){
foreach($dirfile as $df){
echo "<br>".$df;
}
} else {
echo "<br>Could not read file list in ".$home.$dir;
}
} else {
echo "<br>Could not change dir to ".$home.$dir;
}
[ Ten Minutes Later . . . ]
ok, i figured out that i was displaying my error message wrong. The directories that were empty are the ones that were saying could not change the directory.
Thanks for the quick response!