Thanks Richard! I knew it was something minor that I just wasn't noticing. I have another question now, with your formula is it possible to actually put the variable as the start point from where substr takes it's "start point" (sorry about the redundancy there). Because when I try and use it in the following example:

$sRest=substr($sUNCPath,($location)+1))

$sRest does not obtain any value.

By the way I used +1 because I declared the entire UNC server path as a variable and I needed the rest as a string.

Thanks
_________________________
hmmm grey area :-)