Can't you just use:
include '/include/navigation.php';
pritaeas
Posting Expert
5,484 posts since Jul 2006
Reputation Points: 653
Solved Threads: 875
In this case Home should point to /index.php and not to index.php
pritaeas
Posting Expert
5,484 posts since Jul 2006
Reputation Points: 653
Solved Threads: 875
Not quite sure now what you are trying to achieve.
<a href="/index.php">Home</a>
The above will not solve your problem, because ?
pritaeas
Posting Expert
5,484 posts since Jul 2006
Reputation Points: 653
Solved Threads: 875
As mentioned in the above posts:
<?php
$ROOT = $_SERVER['DOCUMENT_ROOT'];
//OR define into constant ROOT - however, should a constant be a variable??
//constants have the advantage of being global.
define('ROOT',$_SERVER['DOCUMENT_ROOT']);
//so includes and requires use the $ROOT or ROOT prefix
?>
As pritaeas says, making html links and references absolute ('/.....'), should solve your 'many locations' problem.
My 2p.
diafol
Rhod Gilbert Fan (ardav)
7,792 posts since Oct 2006
Reputation Points: 1,170
Solved Threads: 1,080