0
I realized that require
and includes
cannot include files that are above the call file directory. Because this occurs?
Example:
It works:
<?php require_once('inc/configs.php'); ?>
That doesn’t work:
<?php require_once('../template/header-home.php'); ?>
That is, if you have to add a file that is above the directory of the call file, it gives error saying that the file was not found.
You are not knowing how to interpret the error you are receiving. If the path was right, it would work. Post the error message and its folder and file structure so we can help you better.
– Marco Aurélio Deleu
PHP is allowed access to the path?
– Maniero
It is probably the directory permission. I do this often, usually.
– Inkeliz