Hello
I created a directory called /sections/html and I add the top of the php script so the header and the footer. Now when I want to visualise the page I got one error, because header.php and footer.php are not located in the same directory.
I also tried with:
---------------
<?php
if (!isset($mainfile)) { include("../../mainfile.php"); }
include("../../header.php");
?> and
<?php
include("../../footer.php");
?>
--------------
But this also didn't work. When I store my php file on the root it works. how can I make this working from /sections/html?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello
I created a directory called /sections/html and I add the top of the php script so the header and the footer. Now when I want to visualise the page I got one error, because header.php and footer.php are not located in the same directory.
I also tried with:
---------------
<?php
if (!isset($mainfile)) { include("../../mainfile.php"); }
include("../../header.php");
?> and
<?php
include("../../footer.php");
?>
--------------
But this also didn't work. When I store my php file on the root it works. how can I make this working from /sections/html?