Using require_once for up directory not working
问题 I am using require_once like this require_once('../mycode.php') I am developing a wordpress plugin. My plugin folder is yves-slider where I have a file called yves-slider.php and a folder called admin. Inside admin folder I have a file called admin.php. I want to require file yves-slider.php in my admin.php which is located up one level directory. When I try to use require_once('../yves-slider.php') it gives me the following error Warning: require_once(../yves-slider.php): failed to open