navigation

Sitewide headers and footers

Using a header and footer for an entire site

If you have a site with many pages, or even one with few pages, and you would like not to update all your HTML files when the site design changes, you can use the include() function to implement a header and footer file that will be used on all your pages.

Breadcrumbs navigation

Following the trail of breadcrumbs

What are "breadcrumbs"? you may ask. The name comes from the Hansel and Gretel fairy tale in which the pair used breadcrumbs to create a trail leading them out of the forest; the forest in this case is your website. Breadcrumbs are a trail of navigational links, that help a user determine where they are located in a hierarchical website.

The code in this script was originally posted to the PHP mailing list by Matt Williams

1. Takes the URL like of a webpage i.e. http://www.blank.com/void/warp.html

Syndicate content