Ben bu işlevi vardır:
if (is_dir($dir)) {
        //are we able to open it?
        if ($dh = opendir($dir)) {
            //Let's cycle
            while (($subdir = readdir($dh)) !== false) {
                if ($subdir != "." && $subdir != "..") {
                    echo $subdir;
                }
        }
}
Bu döndürür:
directory1 , directory2, directory3 etc.. etc..
Hoever Ben bunu yaparsam:
    if (is_dir($dir)) {
        //are we able to open it?
        if ($dh = opendir($dir)) {
            //Let's cycle
            while (($subdir = readdir($dh)) !== false) {
                if ($subdir != "." && $subdir != "..") {
                    if (is_dir($subdir)) { 
                       echo $subdir;
                    }
                }
        }
}
Hiçbir şey yazmıyor!
Why does this happens? I'm running the script withing windows and XAMPP for testing purposes. The directory does in fact contain directories.
Teşekkür ederim
 
			