I'm literally JUST starting out with PHP and i was looking at the tutorial on php.net. They give you a code to set up your "first php enabled page" which just prints "Hello World". Here is the code:
<html>
<head>
<title>PHP Test</title>
</head>
<body>
<?php
echo '<p>Hello World</p>';
?>
</body>
</html>
I made my php file in TextEdit on my Macbook, making sure to set the document to plain text and save it with the ".php" extention. I'm hosting at my domain with DreamHost, which is php enabled. However, I keep getting this error when I try to access the page:
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/soraAgrees1/pjcorso.com/PHPtest.php on line 7
I can't figure out what's wrong. I tried changing the single quotes around Hello World to double quotes, but I get the same error. I am sad.