flash navigation bar simple navigation bar program written in PHP

WBOY
Release: 2016-07-29 08:34:14
Original
1213 people have browsed it

//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.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template