Filereference and require()
| From: | Rasmus Resen Amossen | Date: | Tue, 23 Jan 2001 17:54:11 +0000 |
| Subject: | Filereference and require() | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-36234@lists.php.net to get a copy of this message | ||
I have a file, lets call it genericfile.php, containing a
require("a_specific_file");
Now, I want to use (thats include) genericfile.php in many of my other
.php-files in the WHOLE directorytree. The problem is that
"a_specific_file" can't be found trough genericfile.php if this is
included someplace other in the directory tree.
How can I tell php not to make defaultpath to the toplevel require()
funcion call?
--
Rasmus Resen Amossen | stud.mat.dat at the University of Copenhagen
Jagtvej 120, -244 | http://www.math.ku.dk/muh
2200 Kbh. N | http://w1.1444.telia.com/~u144400001