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

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>';
    } 
__________________
SkiLeases.com
buildakicker is offline  
Reply With Quote