I am using PHP and need to include a PHP file from another location but I cannot figure out the directory command to get the file I want. Here is an example of the structure:
folder1
|
folderA -------- folderB
| |
folderC file_two
|
file_one
That is a rough idea. I am attempting to reference file_two from file_one but keep getting errors because I’m not properly using directory commands. Also, folder1 is a subfolder, not the root folder.
If I put file_one in folderA and use ‘…/folderB/file_two’ it works, but I need to go up 2 folders.
Sorry for rambling. Can someone please show me the correct command?
Thank you very much!