I have a problem with my index.php
together with my "include files". My index.php
file is located inside the main folder named mysite
and the rest inside it are subfolders
with the respective .php files. The sub-folder files are working perfectly, except the index.php
. The include files are messed up every time I preview it in the browser.
The path for the index.php
file goes like this:
mysite/index.php
The path for the include files
goes like this:
mysite/pages/include/header.php
Here is the HTML file with the include files:
<html>
<head>
<?php
include ("pages/include/headertop.php");
include ("pages/include/header.php");
include ("pages/include/nav.php");
?>
</head>
</html>
Kindly correct me if I have missed something here.
By the way, I'm using XAMPP.
Thank you and More power!