Can someone help me with this,I'm stuck.Dont know why this dont work
$myPath = get_bloginfo('wpurl').'/wp-content/uploads/'; // this is full path
function ReadDirList($d){
$dir = opendir($d);
$fs = "";
while($folder = readdir($dir))
{
//if(is_dir($folder)){
$fs = $fs. '<option>'.$folder.'</option>';
//}
}
closedir($dir);
echo $fs;
}
I call this function <select> <?php ReadDirList($myPath); ?> </select>
tnx in advance.