I am trying to require a file in a different folder, but php keeps saying the file does not exist.
"Warning: require_once(./include/config.php): failed to open stream: No such file or directory in C:\xampp\htdocs\MyProject\include\members.php on line 2"
Other pages have been able to access this file without issue, but when it's in the scripts folder instead of the home folder or the include folder, it says the file does not exist. The path that is output in this error is correct, so why is it failing?
if you need to back use
../For example:
require_once("../include/config.php")