简体   繁体   English

PHP包括:无法打开流:“ / literally / the / exact / location / of / the / file”中没有这样的文件?

[英]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.

相关问题 PHP包括 - 无法打开流:没有这样的文件 - PHP include - failed to open stream: No such file include_once(): 无法打开流:没有这样的文件或目录 - PHP - include_once(): failed to open stream: No such file or directory - PHP Yii - 包含(PDO.php):无法打开流:没有这样的文件或目录 - Yii - include(PDO.php): failed to open stream: No such file or directory 警告:包括(dbconn.php):无法打开流:没有这样的文件或目录 - Warning: include(dbconn.php): failed to open stream: No such file or directory 断断续续-PHP警告:包括无法打开流:没有此类文件或目录 - intermittent - PHP Warning: include failed to open stream: No such file or directory YiiBase :: include(DateTime.php):无法打开流:没有这样的文件或目录 - YiiBase::include(DateTime.php) :failed to open stream: No such file or directory include(MultiModelForm.php):打开流失败:没有这样的文件或目录 - include(MultiModelForm.php): failed to open stream: No such file or directory 警告:include(PHPExcel.php):无法打开流:没有这样的文件或目录 - Warning: include(PHPExcel.php): failed to open stream: No such file or directory include():无法打开流:没有这样的文件或目录 - include(): Failed to open stream: No such file or directory include(password.php)[ <a href='function.include'>function.include</a> ]:无法打开流:没有这样的文件或目录 - include(password.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM