警告:require_once(/home/orgdevelopers.tk/public_html/ok/app/Config/constant.php):无法打开流:没有这样的文件或目录
Warning: require_once(/home/orgdevelopers.tk/public_html/ok/app/Config/constant.php): failed to open stream: No such file or directory in
您可以在 http://orgdevelopers.tk/api/app/Config/core.php
上看到错误
我的 php 版本是 7.0.33
。
我在执行 PHP 文件时收到此错误。请帮忙。
{Warning: require_once(/home/orgdevelopers.tk/public_html/ok/app/Config/constant.php): failed to open stream: No such file or directory in /home/orgdevelopers.tk/public_html/ok/core.php on line 3
Fatal error: require_once(): Failed opening required '/home/orgdevelopers.tk/public_html/ok/app/Config/constant.php' (include_path='.:/usr/local/lsws/lsphp70/share/pear:/usr/local/lsws/lsphp70/share/php:/usr/share/pear:/usr/share/php') in /home/orgdevelopers.tk/public_html/ok/core.php on line 3}
core.php line 3 is== require_once('app/Config/constant.php');
如果两个文件都在同一个目录下,require_once
函数中core.php
中constant.php
的路径应该是constant.php
或/api/app/Config/constant.php
或__DIR__.'/constant.php'
而不是 app/Config/constant.php
您可以在 http://orgdevelopers.tk/api/app/Config/core.php
上看到错误
我的 php 版本是 7.0.33
。
我在执行 PHP 文件时收到此错误。请帮忙。
{Warning: require_once(/home/orgdevelopers.tk/public_html/ok/app/Config/constant.php): failed to open stream: No such file or directory in /home/orgdevelopers.tk/public_html/ok/core.php on line 3
Fatal error: require_once(): Failed opening required '/home/orgdevelopers.tk/public_html/ok/app/Config/constant.php' (include_path='.:/usr/local/lsws/lsphp70/share/pear:/usr/local/lsws/lsphp70/share/php:/usr/share/pear:/usr/share/php') in /home/orgdevelopers.tk/public_html/ok/core.php on line 3}
core.php line 3 is== require_once('app/Config/constant.php');
如果两个文件都在同一个目录下,require_once
函数中core.php
中constant.php
的路径应该是constant.php
或/api/app/Config/constant.php
或__DIR__.'/constant.php'
而不是 app/Config/constant.php