Hi, for the last few years i've not thought too much about include paths, before i used to put require './includes/common.inc.php'; at the top of every file which is situated in the root. This file also references files with the same include path eg require './includes/functions.inc.php';
Now I have moved the admin file to it's own folder called admin and changed the require statement to require '../includes/common.inc.php'; but now it can not read the correct path to the files referenced in the common.inc.php file.
I'd appreciate if someone could give me a solution which will work (even if I use mod rewrite and the file is not in the folder in the url - if you get me) and is not too messy.
Appreciate the help. Thanks
Now I have moved the admin file to it's own folder called admin and changed the require statement to require '../includes/common.inc.php'; but now it can not read the correct path to the files referenced in the common.inc.php file.
I'd appreciate if someone could give me a solution which will work (even if I use mod rewrite and the file is not in the folder in the url - if you get me) and is not too messy.
Appreciate the help. Thanks