[英]PHP include: failed to open stream: no such file in “/literally/the/exact/location/of/the/file”?
So while trying to include a file in php, using include(/Users/leonaves/Sites/mysite/admin/inc/pages/dashboard.php)
(I'm running locally), PHP tells me: 因此,当尝试在php中包含文件时,使用
include(/Users/leonaves/Sites/mysite/admin/inc/pages/dashboard.php)
(我在本地运行),PHP告诉我:
Failed to open stream: No such file or directory in /Users/leonaves/Sites/mysite/admin/inc/page_request.php on line 86.
无法打开流:在第86行的/Users/leonaves/Sites/mysite/admin/inc/page_request.php中没有此类文件或目录。
I have tried including from a relative path, from an absolute path, declaring the root in a variable etc. etc. I have no idea how to make this file include the other. 我试过包括从相对路径,从绝对路径,在变量中声明根等。我不知道如何使该文件包含另一个。 PHP refuses to find it AT THE EXACT LOCATION IT IS.
PHP拒绝在确切位置找到它。 Any help would be amazing, thank you.
任何帮助都将是惊人的,谢谢。
PHP executes only scripts found in directories specified in open_basedir
. PHP仅执行在
open_basedir
指定的目录中找到的脚本。 Your path is probably not allowed. 您的路径可能不被允许。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.