Simple navigation bar program written in PHP

Source: Internet
Author: User
Simple navigation bar program written in PHP & lt ;? Php navigation bar configuration description: by default, the directory name is displayed. if you do not want to use the directory name, remove the following line of comment and modify the array element $ labelarray (& quot; directory 1 & quot; & gt; & quot; navigation name 1 & quot;, & quot; directory 2 & quot; & gt; & quot; navigation name 2 & quot;, & quot; directory 3 & quot; & gt; & q // 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 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 );
// Obtain the directory name
}

Echo $ komplettx;

?>

// You can use include to call the program on the page.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.