How do you include a file thats in the root directory (http://sitename.com/FILE HERE .html), in pages that are a in other sub directories, and not necessarily the same sub-dir. I basically want to include the header.html and foot.html files that are in my root dir, with pages I have made in sub-direcorties. And Its just a pain to have to figure out the Number of "../../../This needs to be". I just want to make an easier way to include files in a directory, mainly the root directory, and eventually in my include/ dir, but that is not needed at this time.
Im sure there must be an easy way to get the root dir and include a file within it.
I am thinking I can use basename(), or something like that somehow, but I am retarded so I don't quite understand how that function works exactly.
So basically how could I include the root dir header.html file into pages 1-3 sub-directories below the easiest way possible, so I don't have to worry about doing the "../../../" thing.
Thanks