问题
how it`s possible to include a file (include();) from the root folder to a files from different subfolders ?
回答1:
Use relative path from your script with ../
or use absolute path with the help of $_SERVER['DOCUMENT_ROOT
] as Col. Shrapnel suggested.
来源:https://stackoverflow.com/questions/4423098/how-its-possible-to-include-a-file-include-from-the-root-folder-to-a-files