你可以看到错误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');
1条答案
按热度按时间ee7vknir1#
如果两个文件位于同一目录中,则
core.php
中require_once
函数中constant.php
的路径应为constant.php
或/api/app/Config/constant.php
或__DIR__.'/constant.php'
,而不是app/Config/constant.php