I think the easiest way to explain this is from an example.
Page B contains a function.
Page A includes page B so that it can use the function.
I wanted to use $PHP_SELF in the function in B but it returns an error saying it is undefined. Is there a way for Page B to know what page is including it?
Thanks