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.
Simply using:
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.Code:basename($_SERVER["PHP_SELF"])
The structure is like this:
index.php
home.phpCode:... include "home.php"; ...
And the page is being parsed from "index.php".Code:... <?php //get "home.php" some how ?> ...



Reply With Quote
Bookmarks