[thelist] PHP -name of include sourcefile

Aleem Bawany aleem.bawany at utoronto.ca
Tue Dec 3 13:17:01 CST 2002


> Not that I know of. You could set a variable before including it,
> though:
>
> $parent = __FILE__;
> include 'b.php';
> // compare $parent in b.php

that would do it, thanks.




More information about the thelist mailing list