I have set up a website with the following files:
index.php
includes folder
pages folder
problem is that within my index.php code I have <?php include ('./includes/header.php') ?> to get my header which is in the includes folder…not the problem
The problem is that within the pages folder I have other php files that I want to retrieve the the header and footer.php from the includes folder from main directory and when I try to use <?php include ('./includes/header.php') ?>
I get this warning: Warning: include(./includes/header.php): failed to open stream: No such file or directory in C:\xampp\htdocs\interserv\pages\faq.php
So my question is how do I set this up to do this so I dont have to set up all files in each folder?