index.php:
<?php require_once("include/header.php") ?>
header.php:
<?php require_once("../../include/config.php") ?>
I have php files and I need to access them using the included file so I need to use something like <?php require_once("../../include/config.php") ?> that will work with relative paths to this header.php, not to the file which includes my header.