Using require_once for up directory not working

孤街浪徒 提交于 2019-11-30 06:13:06

You want to make that relative to the current path the file is in:

require_once __DIR__ . '/../yves-slider.php';

What probably is happening is that the current path PHP looks in is not the path you think it is. If you are curious about what it is (the current path) you could do echo getcwd();.

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