Jump to content

Relative Paths and Includes


Guest

Recommended Posts

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.php

Assume 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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.