Menu
Am I right in thinking that it explodes what the current requested URI is and appends a / to it, then stores it into $URIArray, then iterates over it and appends the request uri -1 one level to the $root variable. So you dont have to type out the root of your website each time you move it??
[code=php]
$URIArray = explode(“/”,$_SERVER[‘REQUEST_URI’]);
$i=0;
$root=””;
for($i;$i<sizeof($URIArray)-1;$i++)
{
$root .= $URIArray[$i].”/”;
}