I've found that dirname is bombing on Windoze machines, so I'm trying to come up with a work-around. In the following code, I am attempting to chop off the file at the end of the path:
$fileName2 = ereg_replace('\%20', ' ', $fileName);
$b = split("/", $fileName2);
$b[count($b)-1] = "";
$fileName2=join("/", $b);
It's giving me a parse error. Can anyone see the mistake?
--charles