Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
|
there are 3 special elements in a path:
means "go up one level from the current directory"
means "in this directory". It bypass the global path
means "from the first level of the directory tree"
So, either you know how to access it from where you are, and you can use
PHP Code:
include("../../dir1/file.php");
Or you use the PHP server's variable as a starting point:
PHP Code:
include($_SERVER['DOCUMENT_ROOT']."/dir1/file.php");
$_SERVER['DOCUMENT_ROOT'] is the place where your website have it's root folder. You can access any files in your directory tree from there.
__________________
Only a biker knows why a dog sticks his head out the window.
|