Login   Register  
PHP Classes
elePHPant
Icontem

File: example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Richard Baskett  >  Breadcrumbs  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example File
Class: Breadcrumbs
Show directory and file path with links
Author: By
Last change: Removed some of the directory specific examples, so that it will work on all systems.
Date: 2004-04-30 01:24
Size: 637 bytes
 

Contents

Class file image Download
<?php
#ini_set('display_errors', 'On');

// See class.breadcrumb.inc.php or the README files for Usage Directions
include_once('class.breadcrumb.inc.php');
$breadcrumb = new breadcrumb;
$breadcrumb->homepage='homepage'// sets the home directory name
$breadcrumb->dirformat='ucfirst'// Show the directory in this style
$breadcrumb->symbol=' || '// set the separator between directories 
$breadcrumb->showfile=TRUE// shows the file name in the path
$breadcrumb->linkFile=TRUE// Link the file to itself
$breadcrumb->_toSpace=TRUE// converts underscores to spaces
echo "<p>".$breadcrumb->show_breadcrumb()."</p>";
?>