I've tryed to setup xampp for 3 hours. Given up with that, having a bit more success with wamp how ever php code isnt compiling.
I have index.htm and header.php in my www folder.
index.htm code:
<?php include('header.php');?>
<body>
<h1>This is a header</h1>
<p>this is a paragraph</p>
</body>
</html>
header.php code
<?php
echo "<!doctype html><html lang='en'><head><title>PAGETITLE</title></head>";
?>
The php code is showing instead of compiling. How do i fix this?