I'm making a dynamic web project by following along with a tutorial and I'm using Eclipse Neon, Apache Tomcat 8.5, and PHP Development Tools 4.3. I'm trying to split index.php into a header and footer, but include_once 'header.php' doesn't seem to be working, and the only thing that displays when I run index.php is "Home".
Here's index.php
<?php
include_once 'header.php';
?>
<section class="main-container">
<div class="main-wrapper">
<h2>Home</h2>
</div>
</section>
<?php
include_once 'footer.php';
?>
And here's header.php
<!DOCTYPE html>
<html>
<head>
<title></title>
<link rel="stylesheet" type="text/css" href="style.css"/>
</head>
<body>
<header>
<nav>
<div class="main-wrapper">
<ul>
<li><a href="index.php">Home</a></li>
</ul>
<div class="nav-login">
<form >
<input type="text" name="uid" placeholder="Username/e-
mail">
<input type="text" name="pwd" placeholder="password">
<button type="submit" name="submit">Login</button>
</form>
<a href="signup.php">Sign up</a>
</div>
</div>
</nav>
</header>
They're both under the WebContent folder, and style.css works when I run header.php on the server. I'm also not getting any type of error as far as I can tell (I'm new to Eclipse and the only thing the console is putting out is info on when the server is stopping and starting). I've tried looking for solutions to similar questions but haven't gotten anywhere, so any help is appreciated.