My question is that, all the php files include a file named "my_include.inc", in the "my_include.inc", there are code looks like below snippet,
$file_name=??? // how to get it?
if($file_name=="index.php")
echo "this is the index page";
else
echo "some other page located";
So how to get the file name which include the "my_include.inc" from within the file of "my_include.inc"? Thanks!