Hello.
Is there a way, e.g. a function, to find out which script is calling a particular function? I'm looking for something, in principle, similar to dirname() or getcwd() or whatever I can use to determine this.
I want to add it as part of a condition e.g. 'if' /dir/xyz.php is calling this function which is located in /includes/abc.php, then don't do this...
Thanks in advance.