ok your all going to hate my 🙁 the last script works but i gave you guys the wrong info. this is how the scrip works
there is
$path = "/home";
$path_name = $SESSION["user"];
$path_folder = $REQUEST['path_folder'];
then
$path_full puts them together like so
$path/$path_name$path_folder
an exapmle woul be like this
$path = /home //root folder
$path_name = testsize //there username
$path_folder = /test // ther first folder
now $path_folder is not required and if is not given then there root dir is shown and it builds up from there what i need is a way to do what the last post did only with the $path_folder and have it equal nothing when it get's to the end so...
$path_folder = /test/1/342/124
BACK
$path_folder = /test/1/342
BACK
$path_folder = /test/1
BACK
$path_folder = /test
BACK
$path_folder =
keep inmind that there is no ending / like $path_full did
and once again sorry for being so stubern with this post and thanks