This is painful. I copied and pasted the follow text to a new html file:
<html>
<head>
<title>PHP Test</title>
</head>
<body>
<?php echo '<p>Hello World</p>'; ?>
</body>
</html>
And when I try to open the file in Firefox, it echoes the '; ?> in addition to the words Hello World. When opened in IE, I get a blank page.
Hello World is properly formatted as a paragraph. I am running PHP 5.2.17 with Apache 2.0 on a Win7 32bit PC.
This is so discouraging to have so many problems, I think I might just start accepting that burger flipping is a more viable future career for my skill set than coding.
Can anybody suggest what might be wrong? I suspect it's something with the Apache/PHP software, which, between missing .dlls, glitched ports, and a shoddy antivirus, took about 5 hours to set up - I imagine any number of things could have gone wrong during that process.