if (strlen(rtrim($rootpath,'/\\')) == 0){ $path = ltrim($evald_path,'/\\'); }else{ $path = rtrim($rootpath,'/\\').'/'.ltrim($evald_path,'/\\'); }