I noticed that require
and includes
can not include files that are above the directory of the calling file. Why does this occur?
Example:
This works:
<?php require_once('inc/configs.php'); ?>
This does not work:
<?php require_once('../template/header-home.php'); ?>
That is, if you have to add a file that is above the directory of the calling file, it gives error saying that the file was not found.