I am trying PHP code for the very first time and copying the code in the instructions but when I try to open it “hhtp://localhost/today.php” I am getting the code displayed and not the expected result.
<title>Today’s Date</title>
<meta http-equiv="content-type"
content="text/html; charset=utf-8"/>
<p>Today’s date (according to this web server) is
<?php
echo date('l, F dS Y.');
?>
</p>
</body>
Can anyone explain why please