Setting Your Include Path
Posted: Wed Jul 30, 2008 2:56 am
As you include things, the relative include paths are relative to the current document. I have tried re-writing the script with absolute paths, but that did not work. Can I set a script to execute setting the current path relative to it?
In other words
I have index.php, a folder "includes" and in there, "db.inc" and "readdb.inc". From index.php, I want to include "includes/readdb.inc", and I want to be able to access "db.inc" from "readdb.inc" using the relative path simply "db.inc".
Thanks for any help...
-OmniUni
In other words
I have index.php, a folder "includes" and in there, "db.inc" and "readdb.inc". From index.php, I want to include "includes/readdb.inc", and I want to be able to access "db.inc" from "readdb.inc" using the relative path simply "db.inc".
Thanks for any help...
-OmniUni