I'm trying a slightly different approach with a new site I'm making... I have files all over the place.. eg:
index.php will include "header.php" which in turn will include "config.php". This is where I set some constants, eg:
define('PATH',"http://localhost/blah/");
define('VERSION',"2.31");
in index.php when I include the header (in the same folder) I can use the constants... but if I am in say "files/process_form.php" and I include "../header.php" the file path for the header to include config.php is obviously wrong so the constants are not used.
How do they work, are they like sessions?? I'm getting slightly confused!! :bemused: