Warning: require_once(includes/EliteScript.php) [function.require-once]: failed to open stream: No such file or directory in

我怕爱的太早我们不能终老 提交于 2019-12-01 22:44:47

Change this and check it is working or not

require_once("includes/EliteScript.php");

to

require_once("../includes/EliteScript.php");

Explanation current code calling current directory/includes/EliteScript.php but your file in previous directory so you have to add ../ it will include file from previous directory.

Luceos

The problem you encounter has to do with relative and absolute paths in the include and require functions of php. Your index file is requiring the EliteScript.php with a relative path.

Articles about the difference between relative and absolute:

In your comments you mention the files are encrypted, so the best way to handle this is to keep the directory structure in exact the same way as the files are given to you.

The specifically point out (as I've done in the comments) where the problem lies:

public_html/interface/index.php loads the relative path includes/EliteScript.php which therefor will require the path public_html/interface/includes/EliteScript.php however your EliteScript.php is located in public_html/includes/EliteScript.php.

The other answers maybe true, but they didn't fix my problem.

I did exactly as it was showing in this article

I edited the include_path in php.ini and it's working like charm.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!