Hi Fou-Lu
Thanks for reply
Yeh navigation is in an include.
so I should use this right
PHP Code:
basename($_SERVER["SCRIPT_NAME"]);
I grab the filename and echo nav content based on that -- just if else stuff
It's working on localhost, but I don't want to do it all only to find it's not reliable on server.
My script hinges on that one line really.
I don't know how to use the __FILE__ magic constant.
atm my include looks like this at start
PHP Code:
$currentFile = basename($_SERVER["PHP_SELF"]);
$parts = Explode('/', $currentFile);
$show = $parts[count($parts) - 1];
with rest of nav based on $show
LT