Can anyone explain why this relative link in php doesn't work?
<p>got a strange problem that has so far left me scratching my head.</p>

<p>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.</p>

<p>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.</p>

<p>The strange thing is if I use the relative path from the index file it works? </p>

<p>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?</p>

<p>I'm sure there's a logical explanation that escapes me right now so any help would be greatly appreciated.</p>

<p>thanks
J</p>
