Ok, someone with fresh eyes let me know what I'm doing wrong with this one!
$dir = opendir("./css");
while (($file = readdir($dir)) !== false) {
if (($file == ".") || ($file == "..")) continue;
list($filename,$throwaway) = split('.',$file);
print "<option value=\"$filename\"";
if ($filename == $pcss) print " selected";
print ">$filename</option>\n";
}
closedir($dir);
I get nothing back in the option tags, but if I use $file for the option tags I do get the full filenames. However, I am only wanting the filename minus the extension. So, someone smack me and tell me what I'm doing wrong.