What I mean by that is that I have a header that is included in most of my pages and in the header include it includes a navigation include. I want to avoid typing in things like this:
include ('../../includes/header.php');
and I also want to be careful because of the included navigation in the header. If the header file changes paths to ../../../../includes/header.php then the navigation include wont work.
Whats the best way to fix this problem?
"If the header file changes
"If the header file changes paths to ../../../../includes/header.php then the navigation include wont work."
I meant then the images in the navigation wont work.
<?php $doc_root =
<?php $doc_root = $_SERVER['DOCUMENT_ROOT'];
include("$doc_root/includes/example_include.php");
include("$doc_root/includes/example_include2.php");
?>