Hey guys and gals, I am working on a project and I wish to organize some pages into sub-directories. I have includes for things like my header and footer and sidebar. and I would like to be able to include these files in files in my sub-directories.
So Say I had a structure like this:
index.php
config.php
style.css
/classes/
/images/
/includes/
|header.php
|footer.php
/forms/
|request.php
|subscribe.php
Is There a way to make the pages in sub-directories load the content in parent directories and have those pages aware that they are loaded in sub-directories and automatically adjust the relative links to images and pages?
I know that I could just make every thing use absolute links but I just think it would work better if my scripts are aware of the relation to the root of the site and fix themselves. I am not really sure how to pose this question to Google so if you can help me out it would much appreciated.
Vale