Right, this might be down to me being a tard, or it might be because ive hardly slept the last few days. Been doing loads of programmings for uni and of my personal website.
This is my problem and as simple as it is, I cant for the life of me remember what to do.
Folder structure:
/root/page1/
/root/includes/includeMe.php
/root/subsection/page2
Right, i want to do an include on page1 for the includeMe.php file.
easy : require_once(./includes/includeMe.php);
Now i want to do it in page2... i cant figure out how to direct it to that path. I just keep thinking of '~/' at the start to take you to the root. but it doesnt work.