 for a redesign project at work the new design called for bread crumbs in my opinion bread crumbs are a great thing to add to a site and others agree i didnt want to have to specify anything on each page for the bread crumbs to work so i wanted to do it all dynamically for the project at work i did it in coldfusion but on my own i did it in php i figured the way that i would have to do it would be to parse the url to see which folders i was in the code file breadcrumbs php php require buildbreadcrumbs php ol id= breadcrumbs li class= first a href= home a li php $breadcrumbs = $ server request uri if $breadcrumbs = $crumburl = $toks = split $breadcrumbs for $i = 1 $i count $toks 1 $i $crumburl = $toks $i if $breadcrumbmapping $toks $i = null echo lia href= $crumburl $breadcrumbmapping $toks $i a li else echo lia href= $crumburl $toks $i a li echo li class= last $pagetitle li ol the explanation the first thing that i do is include the file buildbreadcrumbs php ill get to that later then the idea is that we will determine what folders we are in based on the url we split the url based on the slashes and step through them to make links now back to the file buildbreadcrumbs php php $breadcrumbmapping = array folders to be mapped $breadcrumbmapping f1 = folder 1 $breadcrumbmapping f2 = folder 2 $breadcrumbmapping f3 = folder 3 this file is building as associative array to display different text than the folder name there are some situations where the folders are not too pretty so basically you just add the folder name f1 f2 f3 to the associative array and assign it a pretty name folder 1 folder 2 folder 3 if you dont assign a pretty name to a folder it will just display the folder name instead i made an example page to see the bread crumbs in action you can download the scripts here breadcrumbs php buildbreadcrumbs php 