View Single Post
Old 01-15-2008, 04:57 PM   #3 (permalink)
buildakicker
The Acquainted
 
buildakicker's Avatar
 
Join Date: Jan 2008
Posts: 119
Thanks: 21
buildakicker is on a distinguished road
Default

Thanks for the reply. However, I would like to just display the Directory Name, not with ../categories/ in front of it. I found if I do:

PHP Code:
if ($handle opendir('../categories/')) {
            
/* loop through directory. */
            
while (false !== ($dir readdir($handle))) {
                if(
$dir != ".." && $dir != "."){
                    echo 
'<option value='.$dir.'>'.$dir.'</option>';
                }
            }
            
closedir($handle);
        } 
It hides the "." and ".." , how can I hide the ../categories/ with your example? It seems to be a simple, quicker approach.
__________________
SkiLeases.com
buildakicker is offline  
Reply With Quote