in reply to Cutting of Path

Just for the sake of TMTOWTDI try:

substr($files[$i],0,length($conf{rootdir})+1,'');
- or -
substr($files[$i],0,length($conf{rootdir})+1) = '';
- or -
$files[$i] = substr($files[$i],length($conf{rootdir}));

TGI says moo