//Simple navigation bar program written in PHP
//Navigation bar configuration instructions: The default display is the directory name
//If you do not want to use the directory name, please remove the following line Comment, and modify the array element
$label=
array("Directory 1" => "Navigation name 1", "Directory 2" => "Navigation name 2", "Directory 3" => "Navigation name 3");
$ur1=$REQUEST_URI;
while($ur1 != ""){
$text=basename($ur1);
//Get the file name
if(isset($label[$text]))
{$text=$label[$text]; }
$link=$ur1;
$curx= " > $text";
$komplettx= $curx.$komplettx;
$ur1=dirname($ur1);
//Get the directory name
}
echo $komplettx;
?>
//You can use include to call this program in the page