"Navigation Name 1", "Directory 2" => "Navigation Name 2", "Directory 3" => "Navigation name3"); $ur1=$REQUEST_URI; while($ur1 != ""){ $text=basename"/> "Navigation Name 1", "Directory 2" => "Navigation Name 2", "Directory 3" => "Navigation name3"); $ur1=$REQUEST_URI; while($ur1 != ""){ $text=basename">
Home >Backend Development >PHP Tutorial >flash navigation bar simple navigation bar program written in PHP
//Simple navigation bar program written in PHP
//Navigation bar configuration instructions: The directory name is displayed by default
//If you do not want to use the directory name, please remove the following line of comments and modify the array elements
$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
The above introduces the flash navigation bar. A simple navigation bar program written in PHP, including the content of the flash navigation bar. I hope it will be helpful to friends who are interested in PHP tutorials.