A simple navigation bar program written in PHP
Navigation bar Configuration Description: The default display is the directory name
If you do not want to use the directory name, remove the following line of comments and modify the array elements
$label =
Array ("Directory 1" = "Navigation name 1", "Directory 2" and "Navigation Name 2", "Directory 3" and "Navigation name 3");
$ur 1= $REQUEST _uri;
while ($ur 1! = "") {
$text =basename ($ur 1);
Get file name
if (Isset ($label [$text]))
{$text = $label [$text];}
$link = $ur 1;
$curx = "> $text";
$komplettx = $curx. $komplettx;
$ur 1=dirname ($ur 1);
Get directory Name
}
Echo $komplettx;
?>
The program can be called with include in the page
The above describes the Flash navigation bar is a simple php-written navigation bar program, including the Flash navigation bar aspects of the content, I hope that the PHP tutorial interested in a friend helpful.