title: Breadcrumb Navigation Link Tree Issue
body: <p>I am working on a small script and needed to have a link tree. When I run my code Below in the desired file I get the following result -</p>
  
  <p>Home  » 01st Doctor  » 002 The Daleks 1-7  » index.php</p>
  
  <p>I need to make index.php not show up in the results. </p>
  
  <p>So could someone out there tell me what I did wrong and how to fix it? Because I'm at a loss right now.</p>
  
  <p>Thanks   </p>
  
  <pre><code>if($location = substr(dirname($_SERVER['PHP_SELF']), 1))
  $dirlist = explode('/', $location);
  else
  $dirlist = array();
  
  // Strip out unwanted file names
  $dirlist = array_diff($dirlist, array("index.php"));
  
  $count = array_push($dirlist, basename($_SERVER['PHP_SELF']));
  
  // path to main gallery location
  $main_gallery = '/gallery';
  
  $address = 'http://'.$_SERVER['HTTP_HOST'].$main_gallery;
  
  echo '&lt;div id="page_nav"&gt;&lt;br /&gt;&lt;br /&gt;&lt;h2&gt;';
  echo '&lt;a href="'.$address.'"&gt;Home&lt;/a&gt;';
  
  for($i = 1; $i &lt; $count; $i++)
      echo '
          &amp;nbsp;&amp;raquo;&amp;nbsp;&lt;a href="'.($address .= '/'.$dirlist[$i]).'"&gt;'.$dirlist[$i].'&lt;/a&gt;';
  
  echo '&lt;/h2&gt;';
  </code></pre>