01-15-2008, 10:51 PM
|
#11 (permalink)
|
|
The Acquainted
Join Date: Jan 2008
Posts: 119
Thanks: 21
|
Salathe: I just noticed that when I link to the $dir that is passed, I get only the first word in the directory. How do I go about making sure there are no spaces, and if there is, filling it with a _ when new directories are created from my form?
PHP Code:
$path = "../categories/"; foreach(glob('../categories/*', GLOB_ONLYDIR) as $dir){ $dir = basename($dir); echo '<li><a href='.$path.''. $dir .'>'.$dir.'</a></li>'; }
|
|
|
|