01-15-2008, 04:57 PM
|
#3 (permalink)
|
|
The Acquainted
Join Date: Jan 2008
Posts: 119
Thanks: 21
|
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.
|
|
|
|