in my root folder of my domain i have files header.php and footer.php, i have created a new folder and file in the new folder and wanted to include the header and footer files from main. So the paths are: main folder: example.com/header.php new file: example.com/folder/new_file.php <- in this file i want to include the header.
I have tried:
<?php include "header.php"; ?>
<?php include "/header.php"; ?>
<?php include "./header.php"; ?>
<?php include "../header.php"; ?>
and none of them work. Any help would be appreciated thanks.