繁体   English   中英

当前文件夹之外的文件夹的路径

[英]Path to a folder that is outside the current folder

我在jobLister / jobs / pakistan / chemical / index.php中有一个文件index.php ,我想在index.php中包含一个文件,该文件的位置是jobLister / config / init.php。

我试过使用../config/init.php,但这不起作用。

我收到的错误:C:\\ wamp64 \\ www \\ jobLister \\ jobs \\ pakistan \\ Chemical \\ index.php中没有这样的文件或目录

您应该使用:

../../../config/init.php

或完整的绝对路径。

您正在使用的是尝试从中检索文件

obLister/jobs/pakistan/config ,因此出现错误

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM