I'm including the header.php that I use for my index page for a page thats under multiple folders and it's giving me errors for the functions.php and other.php include.
How can I set up the path or structure so I can use one header.php file that has includes inside of it for different folders?
Here's the structure:
index.php
template
template/header.php
template/functions.php
template/other.php
events/christmas/morning/index.php
Main index page
<?php include('template/header.php');?>
header.php
<?php
//has other includes
include('functions.php');
include('other.php');
?>
Another page where I want to include the header.php but in another folder
<?php
//It's sending the "no such file" error for functions.php and other.php.
include('../../../template/header.php');
?>