Do you have a website with a navigation system that follows its directory structure? If so, these functions can be just what you need. combined with my Absolute Include function, you can implement a navigation solution that requires very little maintenance.
directories() returns an array of directories: The one containing the script itself, and its parents. directory_navigation_links() calls directories() and uses the return value to create a navigation bar.