When using the PHP include, how can I find out which file is calling the include? In short, what is the parent\'s file filename?
include
Late answer, but ...
I check the running parent filename by using:
$_SERVER["SCRIPT_NAME"] // or $_SERVER["REQUEST_URI"] // (with query string)