Ok, here is a real short query.
I am calling __FILE__
from inside a function.
Now, this function itself is in a required file.
Now, when I call this function from inside the Parent file, will the __FILE__
output the parent file or the file which was included?
Oh, and I am looking for a source where I can confirm, if possible, because my tests here are giving me entirely absurd results.
Also, if this should display the child (included) file, how should I go about it so that it rather displays the parent filepath? (some variation or something?)