I'm working on using PHP to give myself the same header, navigation and footer elements across all pages, but I have a problem; for some reason the .php file isn't recognizing the header.html file for a include("/header.html")
.php file
<html>
<head>
<meta content="text/html; charset=ISO-8859-1" http-equiv="content-type">
<link rel="stylesheet" type="text/css" href="/style.css">
<title>Sample Game Type</title>
</head>
<body>
<?php include("/header.html"); ?>
<div id="gamelisting"><!--Gametype Shortcuts-->
<a href="http://www.website.ca/game-types/carpe.html">
<div class="gametype">'Carpe' (also known as just Carpe)</div>
</a>
<div class="gametype">Other Game Here</div>
<div class="gametype">Add more as neccessary</div>
</div>
<div class="gameinfo"><!--Information about game type-->
<h2 style="text-align:center;"></h2><!--Name-->
<h3>Description</h3>
<h3>Objective</h3>
<h3>Rules</h3>
</div>
</body>
And then my header.html file.
<html>
<head>
<meta content="text/html; charset=ISO-8859-1" http-equiv="content-type">
<link rel="stylesheet" type="text/css" href="style.css">
<title>Header</title>
</head>
<body>
<li><!--Header Buttons-->
<a href="http://www.website.ca">
<div id="header">
Home
</div>
</a>
<a href="http://www.website.ca/mods.html">
<div id="header">
Mods
</div>
</a>
<a href="http://www.website.ca/selling.html">
<div id="header">
Selling
</div>
</a>
<a href="http://www.website.ca/gallery.html">
<div id="header">
Gallery
</div>
</a>
<a href="http://www.website.ca/contact.html">
<div id="header">
Contact
</div>
</a>
</li>
</body>
What am I doing wrong? The header.html file is in the root of my pubic_html file with the .php page I'm trying to connect with being in directory /game-types