I have a php file with the require_once (?) Instruction, this file is then included in 2 other php files, one php file is in a subdirectory, so the layout is like this ("file1" and "file2" include the file "included" for which required "required") #
L--subfolder1 | L--file1 L--subfolder2 | L--required L--file2 L--included
How can I refer to the “necessary” file from the “included” file so that it works with both files 1 and file2?
source share