building on from this question here it turns out that i have to save the file as a *.php file to display the variable value.
Is there a way to achieve this by keeping the file as a .html? But still achieving the year being displayed in the browser?
here is the code:
<?php
$year = date("Y");
echo "<p class='text-muted'>© $year. X Team</p>";
?>
So instead of haveing file.php with the above code I would have file.html with the above code but achieving the same thing.