How to make globally accessible links / folders in html?

Christopher

New member
okay, what I'm asking is that a file be accessible from anywhere

explanation:
I've got a main content page (index.php)
index.php includes header.php and footer.php
index.php is in directory public_html/
header.php & footer.php are in public_html/resources/includes/
and header.php includes menu.html and includes.html(contains all my style sheet links in one file)

i have other files (faq.php) that inlcudes both header.php & footer.php

now both faq.php and index.php both include the header and footer files from different location

i'm asking how to do this, or if it's even possible.

as of now i tried having the style sheet liinks and header.php and footer.php like this (<?php require("../../../../../../public_html/resources/includes/header.php"); ?>
i'll also need global links (for my menu because it will be included in many different files)
i tried having it back out all the way to the root folder and then go in but it doesn't seem to work

i'd appreciate any ideas you got,

thanks,
 
Back
Top