ok first there are 2 php files, one of which is called nav.php while includes the navigation bar of the site.
I embed it with readfile('nav.php'); into another php file which is the actual content.
Within the nav.php I have the following code
<?php
$file = basename($_SERVER['PHP_SELF'], '.php');
?>
....
and many segments like this
<?php
if( $file == 'history')
{
echo "<img src=\"images/arrow.jpg\">";
}
else
{
echo "<img src=\"images/arrow2.jpg\">";
}
?>
If i open the nav.php, everything works fine.
If I open the content page, it shows up like this
http://sgu.is-a-geek.net/kis/