displaying files and DIRECTORIES via php?
<p>hey guys,
i have a propably rather simple question:
I'm using the following script to read a folder?</p>

<pre><code>    $count = 0;
if ($handle = opendir(PATH)) {
    $retval = array();
    while (false !== ($file = readdir($handle))) {
        $ext = pathinfo($file, PATHINFO_EXTENSION);
        if ($file != '.' &amp;&amp; $file != '..' &amp;&amp; $file != '.DS_Store' &amp;&amp; $file != 'Thumbs.db') {
            $retval[$count] = $file;
            $count = $count + 1;
        } else {
            //no proper file
        }
    }
    closedir($handle);
}
</code></pre>

<p>if a file is an image I print it as an image: print "";</p>

<p>However i wonder how i can display FOLDERS? If i have a subfolder inside of the folder i'm currently running through? how can i print that one?</p>
