how it`s possible to include a file (include();) from the root folder to a files from different subfolders?

我们两清 提交于 2020-01-06 04:31:27

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!