Guest Posted November 15, 2006 Share Posted November 15, 2006 Hi there,I have a fairly primitive system of includes in this test I'm conducting, ie:fileA.php (includes fileB.php)fileB.php (includes fileC.php)fileC.phpAssume all three files are in different folders.Now, say I utilize some php functions with relative paths in fileC... Do I write the paths to be relative to fileC.php, fileB or where fileC's content ultimately ends up (fileA)?Thanks in advance,-Henrik Link to comment https://forums.phpfreaks.com/topic/27363-relative-paths-and-includes/ Share on other sites More sharing options...
craygo Posted November 15, 2006 Share Posted November 15, 2006 all paths will be relative to the main file. So if file A includes file B the paths in file B should be reletive to file A and if file B include file C the paths in file C should be reletive to file A also.Ray Link to comment https://forums.phpfreaks.com/topic/27363-relative-paths-and-includes/#findComment-125159 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.