I'm trying to use php on my webpages. The php in the index.php page works, except for the include statements. The echo statements work correctly. I've tried various methods of using the include statements which you can see here. There are 3 different kind of methods. I've also tried using them without parenthesis. The three files i'm referring to in Index.php are all in the same directory that index.php is placed in as well. Nothing works that i've tried and i cannot figure it out.
Index.php:
<?php
echo 'test';
session_start();
echo 'test';
include($_SERVER['DOCUMENT_ROOT']."header.php");
include("connect.php");
$database = 'NJVCtestDB';
$server = '10.3.171.108';
echo getcwd();
?>
<p>Index.php</p>
<?php
echo 'test';
require("footer.php");?>
header.php:
<!DOCTYPE html>
<head>
<?php
session_start()
echo 'test';
?>
<title></title>
</head>
<body>
footer.php:
<p>footer.php</p>
</body>
</html>