Page 1 of 1

a simple question??

Posted: Wed Jan 11, 2006 10:16 pm
by PHPycho
i had used

Code: Select all

include "/file.php";
include "./file.php";
include "../file.php";
But i had seen following

Code: Select all

include "../../file.php";
i had no concept when to use this
../../
anybody has idea....if yes Please tell me

Posted: Wed Jan 11, 2006 10:45 pm
by khaki_monster
../../file.php - means that your file is under 2 subfolders up. /folder1/folder2/file.php - means your file is under 2 folders down.
just observed how your windows explorer works while accessing some files. :)
i hope my explaination is clear coz im not good in explaination as wil' s as my english grammar. haha :) goodlock!

cheerz!

Posted: Wed Jan 11, 2006 10:56 pm
by timvw
You should lookup what a "relative path" is. Another thing that might be of intrest is the value of http://www.php.net/get_include_path.