Getting started in PHP, but even with a “Hello world” I’m running into problems …
Here’s my page:
<html>
<body>
<?php
echo "<p>Hello world.<br /> </p>" ;
?>
</body>
</html>
But instead of just ‘Hello world.’ I get
Hello world.
" ; ?>
What gives?
FWIW, I’m using XAMPPlite (which is an Apache 2.5.8 with a PHP 5.3.1 on Win XP).
You should save the file with a .php extension, not as .html.