include path inheritance
| From: | Ryan Adams | Date: | Mon, 22 May 2000 15:26:41 +0000 |
| Subject: | include path inheritance | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-290@lists.php.net to get a copy of this message | ||
Is there a method for including a file that allows it
*not* to inherit the path of its including document?
for instance:
/includes/
file1.php
--------------------------------------
echo "This Is ";
--------------------------------------
file2.php
--------------------------------------
echo "A Test.";
--------------------------------------
file3.php
--------------------------------------
inlcude "./file1.php";
include "./file2.php";
--------------------------------------
/myfiles
maindoc.php
--------------------------------------
echo "Testing<BR>";
include "../includes/file3.php";
--------------------------------------
==> (maindoc.php running (ideally))
--------------------------------------
Testing
This Is A Test.
--------------------------------------
(file3.php doesn't inherit the path of the document that
includes it)
Any ideas?
Ryan
*************************************
Ryan Adams
Online Systems Development
College of Family & Consumer Sciences
The University of Georgia
Athens, GA 30602
(706) 583-0344
radams@fcs.uga.edu
*************************************