Hi.
I am using...
$pagename = getenv("PATH_TRANSLATED");
... but I get the whole file location (PATH)... I just want the file name... please help.
echo "I'm file ".__FILE__; echo '<br />You are watching file: '.$_SERVER['PHP_SELF']; echo 'If you see different names '.__FILE__'. has been included by '.$_SERVER['PHP_SELF'];
hth