So I've got a file which includes another file, and from that file I want to be able to write the included file's file name. I've been looking this up for a while, but I can't seem to find it.
won't do because that will only return the parent file's file name (I know, this might seem a little bit useless, but I need it for a template system I'm working on). Wondering if anyone out there knows how to do this.
The structure is like this:
And the page is being parsed from "index.php".
//get "home.php" some how