by Jay » Wed Sep 11, 2002 12:05 pm
The way I do it to always use the full root path eg /home/yoursite/the/full/path
But to make it easier I made up one script which held the path for every single page, like so:
$base = "/home/yoursite/";
$terms = $base."terms/term.php";
$sales = $base."sales.php";
etc
Anyway, then on each script, you have this code at the very top:
require_once("/home/yoursite/where/that/file/was");
and then you can include whatever pages you want by refering to their name eg include($terms) etc