Operation not permitted for include_once

This path is not correct. When you specify a path with a slash at the start, it becomes an absolute path, meaning it is loaded relative to the root of the file system (essentially the server’s C:\ drive), not relative to your website directory.

You’ll probably want to change the path /config/config.php to config/config.php, so the file is loaded to a path relative to the directory you’re loading executing the include statement in.

6 Likes