I'm trying to reuse code for a header of a site using php's "includes" statement.
In the index.php file (the home page) is:
<body>
<?php
include_once "includes/header.php";
?>
</body>
then header.php just has html, first few lines look like:
<?php
<nav class="navbar navbar-inverse">
<div class="container-fluid">
.....
?>
And I'm getting an error message saying:
Parse error: syntax error, unexpected '<', expecting end of file in header.php
Can somebody tell me what I'm missing, or maybe if there's a better way to do this?