My folder structure is like this
Now when I have to include my header and footer in myfile .php i use
and for index I use
I am going to have more sub directories and to keep things neat I would like to define a common root directory and instruct php to look from there and not the directory the file is in.
I can do this with HTML by putting a forward slash, how can this be achieved with php.
BTW I am on a mac 10.5.5 running MAMP as my localhost.