显示路径下的所有文件

I am using the glob function as such;

<?php
    $files = glob("../Desktop/IMG/BananzaNews/Thumbs/*.*");
    for ($i=1; $i<count($files); $i++)
    {
        $imagePath = $files[$i];
        $withoutExt = preg_replace('/\\.[^.\\s]{3,4}$/', '', $imagePath);
        $imageName = str_replace("img/", "", $withoutExt);
        print $imagePath."<br />";
        print $imageName."<br />";
        echo '<img src="'.$imagePath .'" alt="Random image" />'."<br /><br />";
    }
?>

Which is on my sub-domain and I know works as previously it was simply glob("img/.") which displayed all the files.

On the same page files are uploaded to "../Desktop/IMG/BananzaNews/Thumbs/" however setting glob("../Desktop/IMG/BananzaNews/Thumbs/.") does not display my files.