Hi all, got a strange problem that has so far left me scratching my head.
I have an index page with a common.php require file a few folders away. In the require file there are six scripts, with all but two of them being in the same folder as common.php.
So for the scripts in the same folder I simply use the file name eg-require('filename.php'), which works fine. The two remaining scripts are in an adjacent folder named config so I try using require('../config/file.php') but it doesn't work.
The strange thing is if I use the relative path from the index file it works?
How comes I can use paths that are relative to common.php if the files are in the same folder but not when in a different folder?
I'm sure there's a logical explanation that escapes me right now so any help would be greatly appreciated.
thanks J