I’m sure this is simple and stupid on my part, but my php code keeps showing up in my html page.
This is just a simple test:
<html>
<body>
Test 1<br>
<?php
print "Test 2";
echo "Test 3";
print "<b>Test 4</b>";
?>
Test 5<br>
</body>
</html>
And this is how it looks:
Test 1<br>
Test 4"; ?> Test 5
What the heck am I doing wrong? Above I’ve mixed echo and print to show it doesn’t seem to make a difference.
You are not accessing the program through a web server that supports PHP and is configured to parse that page for PHP directives.
.phpfile extension”)