Hi,
I'm having a play around with Ed Sullivans mArticle and have a few questions on directory structure.
Firstly the script is set up so that the original directory structure should be mentained as most of the files have require() or include() functions with relative paths.
These functions refer to different path type - some of which work and some of which don't.
Generally in all my other scripts I have to define the absolute path to the file - or I get a file not found error.
However within the mArticle scripts, all the paths are relative paths - some work and some don't.
for example require("functions.php"); - which is in the same folder as the script which refers to it gives file not found.
Whereas require("./config.php"); seems to get found ok.
Now call me dumb but I've never come across the ./ prefix (with a single ".") - I know ../ means file held in the directory one down from current but what about ./ ??
I also know that require("functions.php"); should look in the same directory as current - is there a reason why it is not finding it when it can find files be relative path prefix ./ ??
Cheers for the help





Bookmarks