我无法从根目录将文件包含在文件夹中。这与我正在尝试执行的操作类似。
Root:
-folder1
--folder2 (I need to include stuff in this folder)
-otherfolder1
--otherfolder2
--otherfolder3 (This is my website folder)
到目前为止,这是我目前行不通的方法。
define("FOLDER2_ROOT", "/folder1/folder2/");
../用于上一个文件夹。
因此,根据您的情况,您需要以下代码:
include("../../../folder1/folder2/abc.php");
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句