More Questions Than Answers

Dan Atrill's blog site

PHP nav excitement

Very exciting and very useful. One file, umpteen possibilities. Have an include file show which page you’re on by looking at the URI in your top bar.
$myAdd = $_SERVER["REQUEST_URI"];
and
for example: if (strstr($myAdd, “about.php”)) {
I am illuminated
} else {
rollover me now
}
This is pretty much all you need. All details for the nav rely on $myadd. It [...]

more... »

Wed, May 11 2005 » PHP » No Comments