non-inheriting includes
| From: | Ryan Adams | Date: | Wed, 14 Jun 2000 22:06:45 +0000 |
| Subject: | non-inheriting includes | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-1881@lists.php.net to get a copy of this message | ||
Hi all,
Does anyone know if there is a method of including files such that
when the include is nested it does not inherit the $PHP_SELF of the
top document?
for instance
/test/otherdir/mydoc.php includes ./myfolder/file1 and ./myfolder/file2
Then, /somedir/somefile.php includes /test/otherdir/mydoc.php.
Rather than mydoc.php trying to include /somedir/myfolder/file1
and /somedir/myfolder/file2, it should include /test/otherdir/myfolder/file1
and /test/otherdir/myfolder/file2.
I'm trying to do this without passing around a variables (due to code
overhead/management issues) and without using absolute references (due to code
portability issues).
Anyone? Please?
-Ryan
***************************
Ryan Adams
Online Systems Development
The University of Georgia
Athens, GA 30602
(706) 583-0344
radams@fcs.uga.edu
***************************