hi there. i was wondering how i can reference the root folder of a website in php. i know in html you do it my putting a \"/\" in front of the path, but when i try that with the include function, it just looks for the path in the current folder, not from the root folder.
i have nested includes, so one page may include my common file, and my common file includes files in it, so depending on the the first page\'s location folder-wise whether it be in the root or a subfolder is what i am having trouble with.
the first page could be 4 folders deep, but my common page wouldn\'t know that so it couldnt put 4 ../ in front of the path. And i don\'t want to use system paths because i am going to be moving the pages around from server to server anyway, so that really isnt an option. you would think there would be an equivalent to / in php.
oh, and i tried ./ but that doesnt work
anyway
thanks for the read
kagey