Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
October 16, 2009, 6:31 pm
rate this thread
PHP_SELF seems to point to the highest up parent, im trying to find
out the immediate parent. In other words, if this is the include
index.php -> include1.inc -> include2.inc
how can I echo that include1.inc is include2.inc's parent? PHP_SELF
will echo index.php as the parent on include2.inc
Re: How to get immediate parent for included file?
Nope, that gives you the function hierarchy, not the file hierarchy.
There is no way to do it what the op wants, AFAIK.
Remove the "x" from my email address
JDS Computer Training Corp.